I need some help with a flow

:bullseye: What is your goal?

I need to select the 3 best items

:thinking: What is the problem & what have you tried?

All items are ranked in the 1st part of the flow.
In the 2nd part, I need to select the top 3, but all items need to be held together before the 3 selected items continue in the flow.
The problem is that I can’t hold all the items together, they keep going through one by one.

:clipboard: Error messages or input/output bundles

The flow works, but wrongly.

Hey Jayme,

Use an aggregator to combine the items in an array and then apply sort() to it.

Welcome to the Make community!

Combining Bundles Using Aggregators

Every result/item from some module types (like Trigger / Iterator / List / Search / Match modules) can potentially and likely output more than one bundle. These multiple bundles will individually run subsequent modules once per bundle, which is not optimal in most cases:

  • one operation per bundle per module, which could lead to…
  • use of multiple credits per bundle per module (some modules use more than one credit)
View example screenshots

Aggregator Example

The “Search Rows” module runs one time, returning 999 results (999 bundles).

  • Without Aggregator: the tools module run 999 times (999 operations)


    (and if there are more modules, they run 999 times each)

  • With Aggregator: the tools module only runs 1 time (1 operation)

:warning: Warning: :police_car_light:
This can easily use your entire quota of credits if you are not careful or fail to understand this concept.

To “combine” multiple bundles into a single variable, so that you can process all of the items in a single operation, you’ll need to use an aggregator. Aggregators is a type of module that accumulates bundles and outputs one bundle (unless you are using “Group By”). An example of a commonly-used aggregator module is the Array aggregator module.

You can find out more about some other aggregator modules here:

Question: Which is the best aggregator do you think you’ll need for your use-case?

For more information, see “Mapping with arrays” in the Help Centre. I also suggest going through the Make Academy, which also covers the use of Iterators & Aggregators.

— @samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

Thank you Stoyan!
Sort? ok.
How about slice()?

1 Like

Thank you, Sam!
I’ll dedicate some time to read it all. :+1:

Slice will help after sort.