Transform an array with an array that contents collections into a new json

Hi,

I’m not sure it’s the best solution but the only one that i have imagined to my needs.
I need to transform this json i receive via a webhook to make a http post request. I have remap it but i don’t know how to loop in the products & comboProducts arrays to get my collection.

Thanks in advance

Welcome @Tino_Barcelona in the Make community :wave:

It is not clear to me which data you need to process in the HTTP request so I cannot answer your specific problem.
In general I can say: to iterate through the products you can use an iterator where you assign the products array as the source. To iterate through the comboProduct array you need a second iterator, where you assign the comboProduct array as the source.

2 Likes

Hi @Tino_Barcelona ,
Use iterator to run for products array and then you can use map and get function on combo to get youe desire output.

3 Likes