I am new to Power Automate and need help with a flow. I have created a flow to generate email reminder based on expiry date from a excel column. Flow generates individual emails to all email ids based on the date expiry date condition.
I would like to send consolidated email to all emails ids matching the expiry condition nstead of sending individual emails.
Can this be done using flow?
Is there any limit on the maximum number of email ids in an email message?
If there is, can flow work around this by splittng email into groups?
The answer is Yes, your challenge can be implemented!
I am assuming one of your excel table columns is the Supervisor email, right? Or some sort of Supervisor id that can be used to obtain its email address.
1.- First you "list rows present in a table" filtering those matching the expiry condition
2.- Second you build an array with all Supervisor email addresses represented in the filtered rows
3.- You implement an Apply to Each, using the array of Supervisor emails as input
4.- Inside your Apply to Each, for each iteration:
4a.- You implement a Filter Array whose input is the filtered results from your excel table, the condition to evaluate is that Supervisor email matches with the one from current iteration.
4b.- You implement a Create HTML table to show the results
4c.- You Send an Email to email from current iteration with the results
Please note if you have more than one supervisor per row, the suggestion I did could also work, even if you have some sort of scenario like the following:
Row#1 is assigned to Supervisor#A and Supervisor#B. Row#2 is assigned to Supervisor#A and Supervisor#C. Row#3 is assigned to Supervisor #A and #Supervisor#C...
Hope this helps
I am sharing the following example, in my scenario I am reading rows from an Excel stored on a Sharepoint site, but changes to adapt it to your scenario should be minimal. Each row represents a task:
And this is the way I implement one notification per 'Leader'. In order to reformat or even hide unwanted columns on your final HTML table, you can add and additional Select and achieve and configure its 'Map Table' according to your needs
Hope this helps
You can follow the method provided by @efialttesto approach your requirements. And I need to add one point is that if you want to send consolidated email to all emails, you can initialize an array to store the email addresses, then put the array into the send email action.
As far as I know, if you are using Office 365 for Business Essentials or Business Premium or Enterprise, the recipient limit is 500 recipients which means you can send a single email up to 500 different recipients in To:, Cc:, Bcc:.
Meanwhile, the recipient rate limit is 10000 recipients per day, which means every day you can send emails up to 10000 different recipients. You can view the limit information of Office 365 in the reference link below:
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Look out for new contribution recognition badges coming SOON!
Join us for the first ever Power Platform Online Conference!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!
Learn how to build the business apps that you need.
Find out where you can attend!
Watch & learn from the Power Automate Community Video Gallery!