For Each

Process a list by calling a helper flow for each item.

Go back to the For Each card,  input the list you want to use, and then select the flow you just built. The inputs will auto-populate, then you can map data into them. To map an input to accept each item of the list, click in that field and you will see a dropdown that includes item - select that. Or if your list is a list of objects, you may also see the schema of the object, i.e. the keys that it contains, and you can choose to have your helper flow to accept those as inputs. In addition, you can drag in outputs from previous cards in the flow, in which case the same value will be used for each item in this list.

Input Fields

  • list: List to operate on

  • flow:  Helper flow that will be called once for each item in the list

  • with the following values (dynamically generated):  Inputs defined by the helper flow - these will populate when you select the helper flow using the Choose Flow dialog

  • concurrency:  Number of items in the list to process in parallel.  If it is important that the items are processed in sequence, use 1.  Otherwise a higher number like 5 or 10 will cause your flow to complete sooner.

Related topics

About lists

Functions in Workflows

About the elements of Okta Workflows