need to set up a filter in my automation workflow to update an Airtable record after all iterations are completed. Currently, the workflow includes an iterator with two operations and a text parsing step that produces two bundles of output.
The goal is to ensure that the 2nd Airtable record is updated only once, and this update should occur after all iterations are finished. To achieve this, I want to apply the filter right before the second-to-last ChatGPT action in the workflow.
1 Like
What is your source module what starts your scenario?
@Mr.Make my source module is webhook which is start when a record is updated
You can add an array aggregator before your update airtable module. Make the source of it your iterator. That way it will only send over one bundle and update the airtable once.
@Mr.Make Thanks for your message is there is any other way then array aggreagator.? Should we used filter?
Can you please share a demo scenario for this?
@Mr.Make is correct.
You have to use an aggregator to combine bundles from different operations.
If you don’t use an aggregator, then each bundle will continue down the line to the last module.
If you use a filter, then your bundles will never pass the filter. Filters don’t “keep your bundles on hold” until all the bundles reach that point. It either lets the current bundle through, or discards it (terminate the cycle of the bundle).
Aggregators
Every result (item/record) from iterator/list/search/match modules 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. The next popular aggregator is the Text Aggregator which is very flexible and can apply to many use-cases like building of JSON, CSV, HTML.
There are other types of aggregator modules, click the below links to find out more:
For more information, see the Make Academy.
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!