How to transform an array of collection in one collection?

Hi Everyone,
I get my leads informations from tiktok ads but it’s an array of collection. :


How can i get just 1 collection with this :
value1 : info
value2 : info
value 3 : info
value 4 : info
value 5 : info

Thanks for your help

Hey @victor.lucienbrun ,
Use an Iterator and map “changes[ ]” array to get the collections in different bundles as output.

2 Likes

Hey AnujP i want to get just 1 bundle not 5 ! Like this for exemple :
image

I want all the info in one bundle

All you need is the built-in function toCollection

e.g.:

{{ toCollection(changes; "field", "value") }}

Screenshot_2024-03-20_135802

For more information, see https://www.make.com/en/help/functions/array-functions#tocollection--array--key--value-

2 Likes