--- title: "Dynamically Creating Entity Data Structures" slug: "dynamically-creating-entity-data-structures" updated: 2021-03-12T15:05:36Z published: 2021-03-12T15:07:29Z canonical: "documentation.decisions.com/dynamically-creating-entity-data-structures" --- > ## 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 Creating Entity Data Structures 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.4.0 | | **Root Folder** | Example Lab - Creating Data Structures | | **Modules** | None | | **Dependencies** | None | This Example Lab project demonstrates how to dynamically create an entity data structure based on the data fields of a parent entity. --- ## Explanation This project works by using an original entity data structure and all of its data fields as a basis for creating a new entity. By running the Flow "Create New Entity" the first step will get the data from the parent Entity "EmployeeDetails" and this information will be passed into a Form. In the Form, the user can then input a name for the new Entity and select from the list of data fields that exists in "EmployeeDetails" which items to be added to the new Entity. Once these selections have been made the Flow will create a list that will store all of the selected data fields and use a ForEach step to add each item to that list. That list will then be used by the Create Data Step to create the new entity with the desired data fields. Reference Articles[Create Data Step](https://documentation.decisions.com/docs/en/using-the-create-data-component) [ForEach Step](https://documentation.decisions.com/docs/en/processing-lists-of-items-with-the-foreach-step) [Building Lists](https://documentation.decisions.com/docs/en/23) ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/Screen%20Shot%202020-10-14%20at%2012.50.06%20PM.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.4.0 or later using our [Importing/Exporting](https://documentation.decisions.com/docs/exporting-and-importing-overview) article. [ExampleLab[CreatingDataStructures].zip](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/ExampleLab%5BCreatingDataStructures%5D.zip) ---