Wait until all emails are sent before executing next module?

Hello!

Here is an automation I’m currently working on:

It goes like this:

  1. Get files list from dropbox folder
  2. Generate share link
  3. Aggregate the list and use shuffle to select a random file
  4. Download the file
  5. Send email to my mailing list using the Sheets as the database the contains all the emails
  6. Move the file once all emails are sent (here is my issue)
  7. send myself an email when the scenario is complete

The issue I’m facing is that the email is being sent to the first contact then the file is move from the dropbox folder so it doesn’t sent to the rest of the list.

Is there a way to make sure everything gets sent to my entire list before moving on to the module that moves the file?

Thank you!
Kizzy

You need an array aggregator after your email module. This will wait for all bundles from your search module to run before proceeding with the next module after the aggregator.

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:

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

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Thanks for the quick answer!

I tried it out, it only sent 2 emails (there’s about 15 people on the list) and then it move on to the next module anyway

Any specific settings for the Array i should be looking into?

The Source Module should be set to where the bundles are coming from, the “Search Rows” module, and NOT the “Send an Email” module.

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

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.