# Workflow Automation: For Each Item

## For Each Item

Use the **For Each** to execute actions on each ***(Ref) Item*** retrieved in a previous step using a **Collector**. This can be used to send separate emails, create separate PDFs, etc. - each with the content of only 1 referenced *Item*.

A **Collector** can be one of the following:

* **Search for Items**
* **Get Referenced Items**
* **Get Podio View**
* **Get Items Tasks**

You can also use the **For Each** to loop through the selected options on a *Multi-line Category*, *Email* or *Phone* field, or even on the *Title* fields from the Items in the specified ***Relationship field*** or ***Task***.

Start the flow by selecting the **Trigger** and add any **Filters** required.

Add **Get Referenced**. Set to *App B* to collect Contact info.

![For Each Item 1](https://www.progress.com/podio/documentation/assets/c5adc1097658d32f07d7393f54c692b5/foreachitem1.png)

Next, add the **For Each**. Select the *Referenced Items* required for each action step.

![For Each Item 2](https://www.progress.com/podio/documentation/assets/413ac0759af3720df2173fb4331a2510/foreachitem2.png)

**Note:** If you are using ***Collected*** data in your actions below, be sure to use the ***Referenced Item*** from your Relationship field. Using the specific relationship field is used to collect only the *Title Field* from the Items in this field.

Finally, add **Send Email**. Using the token selector for unique item data, set up the *fields* for the email template. (*Text Field* called Email Address and not a Podio Contact email)

![For Each Item 3](https://www.progress.com/podio/documentation/assets/8d9412d8cd7c702509ccea64354ef2ea/foreachitem3.png)

Did you know that you can build a custom table using a **For Each** loop. See the **\</> Continue** article for more information.

You can also complete this loop, inside another loop using a **Nested For Each** loop.
