- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 06:53 AM
Hi Team,
I created one subflow where I am getting this error 'Error: Cannot find function push in object' How can we resolve this?
attached screenshot of this error.
Thanks in advance!!!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 10:24 PM
Yes, it was as I expected. You have declared the variable as a String, not an array.
Also, you're missing a semicolon after the variable declaration.
Replace it with this:
var outputString = [];
And then when assigning the contents of the variable, you convert it from array to string like this:
outputs.journal = outputString.join(',');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 07:09 AM
Hi,
Screen shot is missing.
Anyhow, first guess. You have some inline scripting that tries to add data to an non-array object.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 07:58 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 10:24 PM
Yes, it was as I expected. You have declared the variable as a String, not an array.
Also, you're missing a semicolon after the variable declaration.
Replace it with this:
var outputString = [];
And then when assigning the contents of the variable, you convert it from array to string like this:
outputs.journal = outputString.join(',');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 11:55 PM
Thank you so much, resolved my error!!!