@Nived_Nambiar @Pstork1
There is a different way to accomplish this that is faster & will handle large datasets (I think variables are limited to less items / characters than composes).
If you have a Compose from a loop & reference it from outside a loop, then it will create an array of each compose output from the loop.
So if one is sending List rows output to the compose, then it will be an array of JSON arrays…
[
[
{
key1: value1,
key2: value2
},
{
key1: value1,
key2: value2
}
],
[
{
key1: value1,
key2: value2
},
{
key1: value1,
key2: value2
}
],
[
{
key1: value1,
key2: value2
},
{
key1: value1,
key2: value2
}
]
]
So if you can reformat the data to just a single JSON array, then you will have combined the outputs.
For that you will want to put a Compose outside the loop & use an expression like…
json(replace(string(InsertLoopComposeDynamicContentHere), '}],[{', '},{'))
That will return a single JSON array with all your values that you can then Parse and work with in the rest of your flow.