How to catch/manipulate only 1 (e.g. the last) of a batch of operations?

Hi,

I would need to only manipulate one single Operation from that batch of operations that pass my scenario after a scheduled run. For example the last or first one, or any other single one. It is needed to kind of like flagging the batch of that scenario run.

Is there any simple way?

Is there any data in the output bundles?

If not, then aggregate to array and use the built-in function last.

Aggregators

Every result (item/record) from a list/search/match module will output a bundle. This can result in multiple bundles, which then trigger multiple operations in future modules (one operation per bundle). To “combine” multiple bundles into a single variable, you’ll need to use an aggregator of some sort.

Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module.

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

Hello samliew,

thank you for the fast response.

Those bundles do come with any total_number_of_bundles counter or so. When I understand it right, there is no other way to mark that single run, then to aggregate an array. This is what I wanted to avoid, in terms of saving me, re-arraninging the modules contents.

But if they are not aggregated, each operation (of that batch) will be interpretated seperately from the modules, equal to multiple single scenario runs, right?

If the bundles do have the iterator variables, then you can just filter and let the last operation through.

Bundle order position

Numeric equals to

Total number of bundles

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!