Hello community, I kindly request your help with the following. I have a flow that needs to send an email to a certain number of recipients, who are not always the same. Sometimes there may be 2 or 3 recipients, and other times there may be up to 20. Currently, my flow sends the same email based on the number of recipients, meaning that if I have 3 recipients, it sends the email three times, when it should only be sent once to the respective recipients. I tried to solve this by sending an array with the emails in the TO RECIPIENTS field, but the Outlook module does not recognize the array.
I hope you can guide me on how to solve this, please.
Hi ROB_SUPER, an easy way to send multiple emails is to use an iterator (to separate the array of addresses into bundles) and an array aggregator to format the way the Outlook module wants it
I’ll leave you an example
Create the array with the emails (I don’t know how you are getting the addresses, but you get the idea)
Use the Iterator to separate the array into bundles
Connect the Array Aggregator module with the Outlook module, then in Target structure type select Microsoft 365 Email, then map the Iterator value (the email address)
Map the Array of the Array Aggregator module into to recipients
And that should work
Here’s the Blueprint:
Integration Tools, Microsoft 365 Email (Outlook).blueprint.json (14.5 KB)
2 Likes
@Jonathan_Quarics Thank you so much, I’ll try it this way and let you know how it goes. Thanks for taking the time to help me.