--- title: "Dynamically Building a List of Items" slug: "dynamically-building-a-list-of-items" updated: 2021-03-12T15:05:24Z published: 2021-03-12T15:07:04Z canonical: "documentation.decisions.com/dynamically-building-a-list-of-items" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Dynamically Building a List of Items Example Lab ArticleWhile Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released. --- ## Overview | ## Example Lab Details | | --- | | **Version** | 6.10.2 | | **Root Folder** | Example Lab - Building a List of Items | | **Modules** | None | | **Dependencies** | None | This Example Lab demonstrates how to create a dynamic list using the Add Item to List Step. --- ## Explanation This flow works by first establishing a null list of Accounts, afterwards the Flow fetches all Accounts in the system, and runs them through a For Each Step. On each loop the Flow check to see if the Email of that Account contains '@', if it does it will then added it to our previously established list, if not we go to the next item in the list. Once the For Each loop is finished, the final list is passed into output on the End Step. Reference Articles[Build an Array or List of Items](https://documentation.decisions.com/docs/23) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1598898943533.png) --- ## Project Download The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.10.2 or later using our [Importing/Exporting](https://documentation.decisions.com/docs/exporting-and-importing-overview) article. [ExampleLab[BuildingListofItems].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BBuildingListofItems%5D.zip) ---