For Each

Add action

Use context menu or action toolbox to add For Each action to workflow scheme.

  • Click on the area with (Edit) icon on the scheme and:
  • Select category Logic and Flow;
  • Choose For Each.
  • In action toolbox:
  • Select category Logic and Flow;
  • Drag and drop For Each action to the area with (Edit) icon on the workflow scheme.

Configure action

Open action configuration dialog to edit action properties:

  • Open action context menu on the scheme and choose Edit;
  • Or double click the action on the scheme.

Action properties

Use configuration dialog to edit action properties:

Property Description
Title Defines action title.
By default the title is action type name.
Dictionary or collection The items of the selected dictionary or collection will be sequentialy processed.
Only variables of types Dictionary and Collection are available for this property.
Iterations repeat until all items are processed and Stop Processing variable is not set to YES.
Value Variable in which current processed item will be stored on each iteration.
Stop processing Boolean variable. You may use it to make workflow break iterations and exit after the end of the current iteration.

Examples

Iterate through collection of IDs:

Iterate through collection of users using Stop processing option:

Changing the collection while the loop is running may cause a workflow error.