Flow designer - foreach loop over Action return value (e.g., an Action that calls an external API)

Foster Hardie
Tera Expert

I'm getting a list of results from an external API REST call in an Action. The Flow ForEach construct specifies that it loops over Records. I've noticed that it will also iterate over List field types in a table object (though that may be because the List types reference actual Records). In an Action, the Outputs include types Record and List. Record, though, requires a Table for definition.

Here's the question: Is the only way to return an iterable set from an Action to create Records in a table, then return a reference to that?

 

5 REPLIES 5

SC9
Kilo Explorer

I am dealing with the Flow Designer in MADRID. I am trying to use the 'Ask for Approval' activity that takes either a Group or User Record for approval. I want to filter out the requesting user if that user is one of the approvers in the Group. I tried several approaches. I tried creating a custom action with a script step as well that creates an array of user sys_ids as output. That did not work. Any ideas on how I can still use the OOB 'Ask for Approval' activity and not include the requesting user as an approver in the group? Appreciate a response. Thanks