Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Send an HTML table group mail from an excel table

(0) ShareShare
ReportReport
Posted on by

I am searching for months a flow  that allows me to send an html table with several rows to an email.

For example I  have this excel table in One Drive.

 

Process CodeOwnerOwner Mail
Process 1Code 1Cristiano Ronaldocristiano@mail.com
Process 2Code 2Messimessi@mail.com
Process 3Code 3Messimessi@mail.com
Process 4Code 4Neymarneymar@mail.com
Process 5Code 5Neymarneymar@mail.com
Process 6Code 6Cristiano Ronaldocristiano@mail.com
Process 7Code 7Cristiano Ronaldocristiano@mail.com
Process 8Code 8Neymarneymar@mail.com
Process 9Code 9Neymarneymar@mail.com

 

-I manually trigger the flow

2-Get the rows from the One Drive Excel File

3-I Create the hmtl table, and selelect the columns: Process, code, owner

4-Then create the email: I put to send the "Owner mail" an in the body the html table.

 

But for example Cristiano Ronaldo receives 3 diferent mails(One table with a row per register), and that makes the receiver uncomfortable.

 

In the case of Cristiano Ronaldo, I hope he receive this table:

 

ProcessCodeOwner
Process 1Code 1Cristiano Ronaldo
Process 6Code 6Cristiano Ronaldo
Process 7Code 7 Cristiano Ronaldo

 

Can you help me please. 

  • Community Power Platform Member Profile Picture
    on at
    Re: Send an HTML table group mail from an excel table

    Hello @v-bacao-msft 

    I had the same task similar to the problem, I am new to Power Automate

    Thanks to your post, I followed you post it was helpful.

     

    But i am stuck at a point where i receive an error, i am very unclear how to correct the error. can you please help me.

    3.JPG4.JPGerror.JPG1.JPG2.JPG

     

    The error i receive is " Unable to process template language expressions for action 'Apply_to_each_2' at line '1' and column '15394': 'The template function 'variable' is not defined or not valid.'. "

     

    Thanks

    Karthik

  • v-bacao-msft Profile Picture
    on at
    Re: Send an HTML table group mail from an excel table

     

    Hi @Anonymous ,

     

    If you want to refer to current item, the corresponding action needs to be configured in Apply to each.

     

    Please take a closer look at the screenshot I provided, pay attention to the name of Apply to each, and when choosing Current item, you need to pay attention to which Apply to each comes from.

     

    Please try again.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at
    Re: Send an HTML table group mail from an excel table

    @

    Captura2.JPG

    Captura.JPG

     

    @v-bacao-msft What can be this error? 

  • v-bacao-msft Profile Picture
    on at
    Re: Send an HTML table group mail from an excel table

     

    Hi @Anonymous ,

     

    Please check this thread again:

    https://powerusers.microsoft.com/t5/Building-Flows/Sending-Scheduled-Emails-with-Excel-Rows-Included/m-p/593729#

     

    83.PNG

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at
    Re: Send an HTML table group mail from an excel table

    Hi @v-bacao-msft 

    Thank you for helping me.

     

     Captura.JPG

     

     

    I was reading the similiar question and I have a doubt .Can you help me.  What I have to put on Apply to ech 3?

     

     

     

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Send an HTML table group mail from an excel table

     

    Hi @Anonymous ,

     

    Please refer to this similar thread and see if it helps:

    https://powerusers.microsoft.com/t5/Building-Flows/Sending-Scheduled-Emails-with-Excel-Rows-Included/m-p/593729#

    Feel free to let us know if you have any other questions.

     

    Best Regards,

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow