[Array Aggregator] Exit Aggregation loop when reaching a certain amount of array elements

Hi! I’d like to ask if there’s a way to limit the array aggregator loop to a certain amount? This scenario results in iterating 100+ iterations and I only want to have 25 successful results then stopping the aggregator.


1 Like

I don’t think you can “break” out of an iterator-aggregator loop without also stopping the scenario (and losing the data collected in the aggregator).

You also cannot access the amount of items “collected” by the aggregator, from a module or filter that comes before it.

The array aggregator’s “total number” is only available after the iterator has completed iterating all the items in the array.

You can submit this suggestion to the Idea exchange, under App improvement ideas. Don’t forget to search for it first, just in case someone already suggested it!


Hey! Not sure if this works in your case but you can add filter criteria after your iterator to only run X amount of times.

Screenshot 2023-10-12 at 3.21.15 PM


This is Perfect! Thank you :smiley:

Will make do with it for now, as that solves costing much :slight_smile: