I am looking to take a number of bundles returned from an API and generically aggregate them into groups of 20.
In my scenario, I retrieve our users from Google admin. I want to make a subsequent API call, but only want to process 20 bundles at a time. How can I do this?
This is what will happen:
All data bundles will be firstly aggregated into one big array.
The “Repeater” module would then do as many repeats as it is needed for splitting the array into smaller arrays, each with 20 items. This is done with the formula below.
You can find more info on the functions used in our Help Center.
There’s also an article on Math functions here in the community: 🎓 [Getting Started with Functions p. 2] Math Functions
The “Iterator” module will then iterate the same array multiple times but the filter will pass only those data bundles needed for creation of multiple smaller arrays.
The “bundle order position” item helps to achieve that.
Finally, the “Array aggregator” module will create the smaller arrays you can then use further in the scenario flow.
Functions in Help Center