Hi everyone,
I am processing a payload received from a webhook, which contains an array of collections. I am using an Iterator to loop through each collection and perform some transformations. However, I need to:
- Extract and modify data from each iteration (which I am doing successfully).
- Combine each processed bundle into a new collection.
- Append each new collection to an array that stores all modified bundles.
- After all iterations are done, map this array to a new json payload.
Current Setup:
- Webhook → Receives payload
- Iterator → Loops through an array in the payload
- Set Multiple Variables → Extracts & transforms data
Problem:
Right now, the process runs per iteration, and I am unable to collect all processed bundles into a single array. The workflow is getting stuck at Webhook → Iterator → Set Multiple Variables
, and I don’t know how to store all iterations together before moving forward.
What I Need:
- How can I store and append each processed collection into an array?
- How can I ensure the process only continues after all iterations are done?
- Do I need an Array Aggregator or another module to achieve this?
Thanks in advance!
Iterator:
Setting Variables:
Aggregator: