This workflow action is used to loop through each value in a collection variable.
Other actions can be dragged on to the designer as child actions of the For each action, and these actions will be executed for each value in the collection. The current value of the collection is accessible to each of the child actions via a workflow variable.
To use the workflow action:
Alternatively
To change the settings used by the action:
For more information on the other options in the drop-down, please refer to the Getting started with the Nintex Workflow designer.
The collection variable to loop through.
As the action loops through each value in the Target Collection, the value will be assigned to this variable. Actions that are children of the For Each action can use this variable to access the current value of the collection.
Any variable type can be selected, the workflow designer must ensure that it is compatible with the values stored in the collection.
A number variable can be selected to store the position of each item in the collection as it is accessed. The first item will be at position 0.
A Yes/No variable type can be selected to break the loop. When the variable is true the loop will not process any more collection items and the workflow will continue to the next action after the For each loop.