Dynamically naming lists
Hello-
Is there a way to dynamically name new lists that are created (or even dynamically name something created in the Create Data step)?
My use case would be: want to create a new list for each item in an existing list, but name them dynamically based on the items in the first list.
By using item index, I'm able to create new lists based on each of those, but not name them based on the values (at least not so far).
Thanks as always!
Comments
-
Hello!
If the lists are created and named at runtime, one option for working with them at design time is to use a list of data pairs. You can process the original list to create a data pair for each item, where the name reflects the value from the original list, and the value can hold the new list.
If you know the types of the lists in advance and they are consistent, you might also consider implementing a flow structure. This approach would help you avoid dealing with the value of a data pair as an object.
Attaching a documentation link of Creating Data Pairs
https://documentation.decisions.com/v8/docs/create-data-pairs
Please let me know if you have any further questions or need additional assistance!
Thanks.
-Manisha
-
Thanks, Manisha-
In my case, I'm trying the Number data pair.
Is there a way, later in the flow, to update that value? I tried a simple "add" step but couldn't pull in the Number since it is output as an object.
-
Hi
To address this, you need to create a flow structure that stores both the original list values and a number list. In the flow, when looping to dynamically assign names, select the newly created flow structure as the type in the "Create Data" step, and assign the names accordingly. Please refer to the attached flow.
Note: 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
-
Thanks!
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 491 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions