When you're working with a list of items, you often need to write that entire itemized list into a document or an email. For example, you may need to write an email with a list of tasks that were completed today, or create an invoice with many individual charges.
This has historically been really difficult to do in automation tools! You needed to iterate over your list and use a separate data store to keep track of the itemized presentation of the list as you build it one step at a time.
We just introduced a new feature in Relay.app called "Unroll" that makes this way easier! Instead of a complex iterator, you can specify how you want your list to be itemized inline right where you're using the text (e.g. in an email or a document).
Here's a quick step-by-step guide of ow to use Unroll to write an email with all of the tasks that were completed today.
1. Set Up Your List
In this example, we have a Notion database of tasks, each with a title, a done state, and a due date.
![](https://cdn.sanity.io/images/1h9u8aig/production/d8eda1816c719df66ab0d59ad8b6162cfc30c34f-1822x628.png?w=3840&q=75&fit=max&auto=format&dpr=2)
As a first step in our Relay.app workflow, we need to assemble the list of items that we want to use. In this case, we'll use a "Find" step in Notion to create a list of the Tasks that were completed today. Make sure that you update the setting of "If more than one page is found" to "Combine all pages into a list".
![](https://cdn.sanity.io/images/1h9u8aig/production/01893db6355aae2eb4ea5c38c1d811c25172525e-944x1214.png?w=3840&q=75&fit=max&auto=format&dpr=2)
2. Create your Automation
To use the list you've just created, you'll need to create an automation that uses a text editor, for example a Send Email automation. Include any text that you want to appear before or after the itemized list.
![](https://cdn.sanity.io/images/1h9u8aig/production/0b0bb2ec4565796e06b9da46f9e9f27bec92a2f5-948x1202.png?w=3840&q=75&fit=max&auto=format&dpr=2)
3. Unroll your list
Next, in the data menu, hover over the list of items you want to unroll. You'll se that you have a few display options for your itemized list: bullets, numbers, or plain text.
![](https://cdn.sanity.io/images/1h9u8aig/production/47a23818bcf4329c9fc005d48b18c482d1f63ca8-1386x1268.png?w=3840&q=75&fit=max&auto=format&dpr=2)
4. Format Each Item
Once you select the styling of your unrolled list, you can format how you want each item to appear. In this example, we'll keep it simple and just include the title of the task, but you can add more data and richness as needed.
![](https://cdn.sanity.io/images/1h9u8aig/production/14d269f7bc0f5ee120b5d1673cf1b97ab0aa1ad4-866x412.png?w=3840&q=75&fit=max&auto=format&dpr=2)
5. Test the Workflow
Finally, create a test run and confirm that the email includes the itemized list with the correct presentation.
![](https://cdn.sanity.io/images/1h9u8aig/production/e6e3ed3464058a46a7b827726af49e33d62d84ea-1624x1298.png?w=3840&q=75&fit=max&auto=format&dpr=2)
And that's it! Now you're ready to unroll any list you need in an email, doc, or Slack message.