How to parse For Each data object.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2025 11:33 AM
Hi,
A custom action is converting a comma-separated string to a Flow object. And this flow object is being passed into For Each and into a spoke. I've been trying to access the flow object of each iteration(shown below) to print it into the work notes.
I tried in the below way but not working giving fd_data is undefined.
var worknotes = fd_data._9__for_each;
return worknotes;
Please anyone suggest me approach or solution.
Thank you!!
Please anyone suggest me approach or solution.
Thank you!!
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2025 12:27 PM
Try to Convert the comma separated values into an array and then loop then For each action, i did the same with the below code
var arrStr = inputs.<your variable>.toString();
var strSpilt = arrStr.split(',');
outputs.finalarr = strSplit;
Make sure your Output for the Script is of type Array and the final Action output as String.