I have an Iterator scenario, looping over a list, how can I send an email only after the entire loop is finished?

Hi evereone,

I have an Iterator scenario, looping over a list, how can I send an email only after the entire loop is finished?

Thanks,

1 Like

Heyy @Ibrahim_Abu_wasel Welcome to the community!

Please share screenshot of scenario build and shared details of steps taken so far.

Best,
@Prem_Patel

1 Like

I defined a “count” record in the data store with the value 0.
Inside the loop, add + 1 to the value.

I simply cannot get the updated value after the Iterator ends.

Before sending the email, I put a filter that checks the amount of bundles in the Iterator if it is equal to count.

Is there another way to know when the Iterator ended in order to send a summary email?

1 Like

Thanks for sharing.

Email is static or it does need any mappings coming from iterator processed data?. If not, you can use some aggregation tool with iterator as souce module before sending email it will aggregate and process all iteration before sensing an email.

Best,
@Prem_Patel

1 Like