For Each Step
You can use a For Each Step to add a series of steps to be performed on each record returned by a search. A For Each Step is always preceded by a Retrieve Records step which determines the set of records to which the steps in the For Each path will be applied.
In general, the Collection Variable contains the list of records which the For Each step process will be performed on, the Retrieve Records step executes the search and returns a set of matching records, and the For Each Loop contains all the steps to be performed on the records. A For Each Step requires a reference to the Collection Variable to identify the record set. If there are no records returned in the search, the For Each loop is skipped entirely and the Action flow resumes below the End icon.

To add a For Each Step:
- Drag and drop a For Each Step from the palette onto the process flow in the desired position.
- Double-click the For Each icon to open the For Each Properties window.
- Enter a Description and select a Collection Variable from your action for the For Each's Search Variable.

- Click OK. You are now ready to add other Action Steps inside your For Each loop.
When you add steps in the For Each, use your Collection Variable to perform the step for every record found in the search. For example, to update a set of records returned by a search, use a Set Value step in the For Each loop that maps the Collection Variable to a Record Variable as the target, and then add a Perform Action Step that does an Update.