Hi - Thanks in advance for any help! Your time is genuinely appreciated!
I need to set up a scheduled flow which sends 1 email to each address in a list. The body of the email needs to contain a table with rows of data that relate to that email address. The data table and email table are difference sources.
Data Format:
EmailTable
| ID |
Email |
| 123 |
DepartmentA@email.com |
| 456 |
DepartmentB@email.com |
DataTable
| ID |
Name |
Status |
Score |
| 123 |
John |
Open |
10 |
| 123 |
Sally |
Pending |
25 |
| 456 |
Peter |
Closed |
40 |
| 456 |
Jane |
Open |
5 |
Desired Result
When the process runs I would like 1 email to be sent to each email address from the Email Table. The email will contain the rows of data that relate to that email address, when matching on the "ID" column across the two tables.
Email 1
Body:
| ID |
Name |
Status |
Score |
| 123 |
John |
Open |
10 |
| 123 |
Sally |
Pending |
25 |
Email 1
Body:
| ID |
Name |
Status |
Score |
| 456 |
Peter |
Closed |
40 |
| 456 |
Jane |
Open |
5 |
Notes:
I am flexible on how this data is stored, whether that is a spreadsheet, sharepoint list, or even something like a power bi semantic model?
I do not want each department to get an email for each row, meaning they would get spammed.
This will be a scheduled weekly email.
Built within the microsoft ecosystem, so needs to rely on those tools. (excel/sharepoint/outlook etc)
I have tried searching for solutions, including using copilot for help. It seems I need to build an array for each ID, but I keep running into errors.
Please let me know what additional information is needed
Many thanks for any and all help.