For Each

Use the For Each action A tool for building the processes, logic, and direction within workflows. to run a set of child actions. The For Each action iterates through each item in a dictionary A group of name-value pairs. A dictionary variable is a container for a logical unit of variables. Multiple data types can be contained in a single dictionary variable. or collection A variable containing multiple items, such as email addresses. Collection variables are useful for storing and operating on query results. For example, you can set up collection variables for names, email addresses, and index values to store results from querying a list. You can then loop through items in a particular collection variable (names, emails, or index values). variable, running its child actions during each iteration. When all items in the collection are processed, the workflow proceeds to the next action in the workflow. If you are looking for a particular item, you can optionally stop the action when that item is found.

To master the use of the Logic and flow actions, complete the Nintex for Office 365 - Complex Logic in Nintex University.

Before you start 

Add and configure the For Each action

In the Designer:

  1. Click the Logic and Flow action group in the action toolbox.
  2. or

    Type the action name or function in the Search field at the top of the action toolbox.

  1. Drag the For Each action to the designer canvas.
  2. Open the Action Configuration window. For steps on how to open the Action configuration window, see Action configuration window.
  3. For Input dictionary or collection, select the dictionary or collection variable to process.
  4. In Output value, specify a variable to store the value of the variable item accessed from the dictionary or collection variable.

  5. Click Save.

For more information on the fields and buttons see, For Each fields, buttons and settings