- 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Dynamically Creating Entity Data Structures
- Updated on 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
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.