# Collecting multiple Relationships Fields to the same Podio App

Every week we send our Agents a list of the Top 3 vacant properties. These properties are indicated on 3 separate relationship fields within the Marketing Item.

![Relationship Field](https://www.progress.com/podio/documentation/assets/38d2ed37a75e5ab7fed345e618e2ba1b/relationship-field1.png)

The problem with actions like **Search** and **Get Referenced Items** is that *Items* from the same **App** end up in the same bucket, making it impossible to distinguish which item came through which action or collector.

## Introducing the Clear Collected Action

Using the action **Clear Collected Items**, you can now perform the **Get Referenced Items** on multiple fields since you can clear this data after each iteration.

![Clear Collected Item](https://www.progress.com/podio/documentation/assets/5b32d164034ffacc580330c8b52aa808/clear-clctd-itm1.png)

The difference when collecting multiple items vs single items is that **Custom Variables** need to be created to use data required for further actions. Once the **Clear Collected** action is completed, the usual field tokens will no longer be relevant without this **Variable**".

## Example Flow in Detail

1. When creating your flow, add the **Get Referenced Item** collector and set up to find the first relationship field. In this case, it is called **Property 1**.

   ![Relationship Flow to Podio App](https://www.progress.com/podio/documentation/assets/9578b64b4b2d8f8d183f88f32de0bb00/relationship-flow1.png)

2. Add **Custom Variables** and use the **Referenced** field token to create the fields that will be used in the PDF.

   ![Relationship Flow to Podio App](https://www.progress.com/podio/documentation/assets/974d3b6fcc225be381a517e08af9acb6/relationship-flow1a.png)

3. Add the **Clear Collected Items** and set the App.

   ![Relationship Flow to Podio App](https://www.progress.com/podio/documentation/assets/3129cf08b697af3be6c3344ad334e70d/relationship-flow1b.png)

4. Complete this procedure for the other 2 fields, **Property 2** and **Property 3**.

   ![Relationship Flowto Podio App](https://www.progress.com/podio/documentation/assets/35e1035efb9ccf7bb09cec2f01a849d6/relationship-flow1c.png)

5. Add the **Make PDF** actions and use the **Prep** field tokens to enter data into the document.

   ![Relationship Flow to Podio App](https://www.progress.com/podio/documentation/assets/ad552c9c3a8579b1954ed8ffd7426ffc/relationship-flow1d.png)

6. Finally add the **Send Email** action and attach the Most Recent file.

   ![Relationship Flow to Podio App](https://www.progress.com/podio/documentation/assets/ed58aacaf1ba0b9a84e7c73631df9df6/relationship-flow1e.png)

## The Outcome

The result is now, when I generate the weekly property flyer, a PDF is created of the 3 properties, attached to the Podio item and then emails to our internal team.

![Relationship Outcome to Podio App](https://www.progress.com/podio/documentation/assets/85b69c53fc2bca5ff64c46096f401129/relationship-field-outcme1.png)

![Relationship Outcome to Podio App](https://www.progress.com/podio/documentation/assets/2da8afe16343decb48fb8c38b1029d5c/relationship-field-outcme1a.png)
