For Each

Description

The ForEach action allows a Flow to iterate through a list of items, applying one or more actions for each item. The input for the ForEach action is a list of items, usually this input is provided by a HTTP request. Once the ForEach action is set in the flow, internal actions can be added clicking on the plus icon. Actions can be sorted using drag & drop functionality.

ForEach Flow Designer

Internal references

Internal actions are those which are part of the ForEach. They will be applied to each item of the list. Those actions have access to special references:

Moreover, internal actions can reference output results from other internal actions.

ForEach Flow Designer

Output

As the For Each action breaks the normal execution flow, the History section has been updated to show a clearer view of the execution. ForEach actions are shown including the action's step itself together with the iteration and the substep sequence in the name (i.e: Step2.Iteration3.Substep1). Clicking on the header of a specific step will expand the step's information as usual.

ForEach Flow Designer

Nesting

The new naming convention for nested ForEach actions is substepX_X, where the second X represents the nesting level.

The only exception to this naming convention is the first nesting level, where the name used continues to be substepX to avoid breaking changes.

For example:

substep1 represents the substep 1 of the nesting level number 1. substep1_2 represents the substep 1 of the nesting level number 2. substep3_4 represents the substep 3 of the nesting level number 4.

Limitations