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

  • Manisha_Decisions
    edited October 28

    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

Sign In or Register to comment.