
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2020 08:54 PM
Dear all,
Can someone suggest an action item which takes the input as comma separated strings and returns an Array?
NOTE - I need this as an custom action to be reused in the Flow Designer please.
Regards,
Anish
Solved! Go to Solution.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2020 11:08 PM
Hi Anish,
Here is the custom action to convert comma separate string to an array:
(function execute(inputs, outputs) {
outputs.output_parameter = inputs.input_parameter.split(',');
})(inputs, outputs);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2020 11:16 PM
Hi Akshay,
Thanks and I am yet to try it, but is keeping the output data type as String instead of Array.String correct here?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2020 11:26 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2020 11:29 PM
Look at the output variable on the right. It is empty, does not return any value. I want the action item to return a value in a format that is acceptable for iterations like For Each Item. This is why I was seeking the output in Array.String format

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2020 11:43 PM
I corrected the double quotes to single quote within the split method call.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2024 12:27 PM
The accepted solution only worked out for me when I changed the Output types to "Array.String" in BOTH the Script section and the Outputs section. Once I did that, it worked out for me (I am trying to use it in a "For Each" Action in my Flow).