Comma list to Bundle

Hi,
How do I transform the first list where the index of each correspond to their respective bundle in the last screenshot?
Screenshot 2023-09-19 at 12.21.03

Welcome to the Make community!

Could you please provide the input and output bundles of the modules by running the scenario, then clicking the bubble on the top-right of each module, taking screenshots of, and copying the contents into this discussion thread:

Screenshot_2023-08-29_100800

This will allow others to better assist you. Thanks!

2 Likes

Here is the output of the first:

[
    {
        "datum": "11/09/2023, 05/09/2023, 15/09/2023",
        "bedrag": "100, 200, 300",
        "lid": "member one, member two, member three",
        "sell": "0780123456, 0810123456, ",
        "tiende": "1694612418730x554625354040666940, 1694612439507x615298304668021600, 1694612459070x992419989666541900"
    }
]

The second screenshot is not part of this scenario but there to show what my expected result would be.

My next step was to create multiple variables but stuck after this.

You’ll want to split each properties’ value by , then iterate through the number of sub-items, then set the variables:

Screenshot_2023-09-19_230902

This will generate three bundles:

1 Like

Thanks so much @samliew. That does exactly as expected and needed. Appreciate your effort in your answer.