How to process arrays with iterators on Make
Process arrays in Make using the Iterator module to break down array elements into individual bundles. Each array item becomes a separate bundle that flows through subsequent modules, enabling individual processing of array elements.
Prerequisites
- Basic understanding of Make scenarios
- Familiarity with JSON data structures
- Knowledge of Make modules and connections
- Understanding of data mapping concepts
Step-by-Step Instructions
Add an Iterator Module to Your Scenario
Configure the Array Input
collection[] or items[].Connect Processing Modules After Iterator
Map Individual Array Element Data
name, id, or value instead of the full array. Use these mapped values in your subsequent module configurations.Handle Array Element Processing
{{1.name}} and {{1.email}} from the Iterator output instead of trying to process the entire users array at once.Add an Array Aggregator (Optional)
Test and Validate Array Processing
Common Issues & Troubleshooting
Iterator shows 'No bundles processed'
Verify that you've mapped an actual array to the Iterator's Array field. Check that your source data contains a valid array structure and not a single object or empty value.
Processing modules receive entire arrays instead of individual elements
Ensure you're mapping data from the Iterator output (usually bundle 1) and not from the original source module. The Iterator should break down arrays into individual properties.
Scenario processes fewer bundles than expected
Check for empty or null values in your array that might cause the Iterator to skip elements. Review your array data structure in the previous module's output to identify any formatting issues.
Array Aggregator doesn't collect all processed items
Verify that the Source Module in the Array Aggregator is set to the Iterator, not the final processing module. This ensures all bundles created by the Iterator are properly collected.