web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sending multiple email...
Power Automate
Unanswered

Sending multiple emails with HTML Table and dynamic content

(0) ShareShare
ReportReport
Posted on by 2

Hi, I have to build a flow where I am sending multiple emails based on SP list which has list of data providers, data approvers, deadline date.

Each email will go to 2 people- Data Provider and Data Approver. And in each email I want to dynamically have data provider's first name and deadline date.

Image 1

First I used Get items to link SharePoint list. Then I selected data provider's and data approvers' emails. Then i extracted unique emails using union for Data providers and data approvers.

Image 2 & 3

I used apply to each loop (Loop2) based on unique data approvers emails. Then i used filter array 2 to filter data matching based on data approver email id. Then I used select tool to get columns I need from whole data set.

Image 4 & 5

Then I used apply to each loop (Loop1) again for unique data provider's email id. I used filter array to filter data related to data provider from filtered data in above data set. (Note Loop1 is inside Loop2) Then I used Parse Json so that i can use fields from filter array. 

Then I created HTML Table (which I want to sent with each email ) contains- Input Number, Input Name and link.

Image 6

I used format html table to use in email body. Then applied condition that if output from filter array is not empty , then send email.

Image 7 & 8

I used send email v2 action to send emails.

 

Problem

My flow is working absolutely fine. Its is able to send emails to data providers and data approvers with HTML Table.

 

But I need dynamic content like

"Hi *******data provider's first name,

 

The deadline date is ****

 

HTML Table output

 

Thanks"

 

Is there any way I can include fields from HTML Table to send emails without creating Loop3.

 

 

 

 

 

 

Categories:
I have the same question (0)
  • TanyaMc365 Profile Picture
    63 on at

    What is the data source or logic for the due date? Use variables and expressions to generate the dynamic content to include in email.

    -------------

    You can use O365 get profile action to get given name that matches the profile email.

    https://powerusers.microsoft.com/t5/General-Power-Automate/Extract-First-Name/td-p/819600

  • Divya_Goel_1988 Profile Picture
    2 on at

    Due date is a column in SP list. I am able to bring this column in html table and html table gets filtered on basis of data provider and data approver and it goes in email body.

    I want to use this date field independent of html table and it should come from due date column.

  • TanyaMc365 Profile Picture
    63 on at

    Try using a variable set to the outputs for that field, like you used in table, assuming the due dates are all the same...then you won't need the column in the table because the info would be repetitious.

    If the dates are not the same, then are you wanting a table for each due date? If so then you would need another loop/array I think.

    Perhaps create some data input vs output mockups to help explain and map what you are trying to do and where you need to loop and aggregate info.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 464

#2
Haque Profile Picture

Haque 416

#3
David_MA Profile Picture

David_MA 323 Super User 2026 Season 1

Last 30 days Overall leaderboard