flow designer - action output(array.string) not passing the values to subflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 04:21 PM
Hello,
I am trying to pass an array values from the action output to a subflow. but the action is not passing the input to subflow. can someone help me on this.
Action code:
var arr =['abcd','dfjh','hjgkj'];

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 05:06 PM
Hi @swathi55 ,
Try declaring the array contactsArray out side of for loop . Like below and it should work.
var arr =['abcd','dfjh','hjgkj'];
var contactsArray =[];
for(var i = 0; i < arr.length; i++)
{
contactsArray.push(arr[i]);
}
outputs.failures = contactsArray;
Nitin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2023 03:03 AM
The problem is its not passing the output value to the subflow.. do i need to change the output type?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 12:06 AM
I have the same problem despite declaring an empty array outside the loop as suggested below. The only thing that comes to the SubFlow is the Status object.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2025 04:04 AM
try:
contactsArray.push(arr[i].toString());