While using for each, i am getting the error "unhandledRejection: TypeError: data.forEach is not a function"
Solution i tried I converted the data into JSON format before using for each
const data = JSON.parse(message);
I logged the JSON message and below is the message:
{
  '0': {
    'Id': 4680,
    ’Flgtrue ?': 'Yes',
    'Type': ‘rrrr’,
    RN: '56971',
    'Name': ‘TSN’’s Percussive Arts Centre.Inc’,
    'Start Date': '2022-01-01',
    'End Date': '2023-08-02',
  },
‘1’: {
    'Id': 4681,
    ’Flgtrue ?': ‘No’,
    'Type': ‘rrsrr’,
    RN: '56975’,
    'Name': ‘TSN’’s Percussive Arts Centre.Incffff’,
    'Start Date': '2022-01-01',
    'End Date': '2023-08-02',
  },
  letter_path: ‘Test/File/2050_Sample.pdf'
}
Any help is appreciated
Thank You in Advance
 
    