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 / Send an email from exc...
Power Automate
Answered

Send an email from excel file with Power Automate

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Dear experts, 

I am new to PAD an I have created an automated flow that sends an email for each row, but as most of the IDs are repeated in the rows, each of them would receive more than 1 email. What I need is to be able to send one email for each "requisitioner", listing all the "blocked invoices" I have under his name. 

Thank you in advance! 

Help PA 1.pngHelp PA 2.png

 

 

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    This is not PAD.  This is PA flows (cloud).  The D in PAD is for Desktop, and the interface looks much different.

     

    In PAD, we handle this by identifying the filenames on each row and then have a logic similar to the following:

     

    For each row in Excel

        Add attachment to %Attachments%

        If the next email does not match this email

            Send Email with %Attachments%

            Clear list %Attachments%

        End (if)

    End (for each)

     

    This basically adds up all the filenames in a list called %Attachments% and analyzes the next row to see if the email is the same.  If it's the same, it adds the next one, but if it is not the same, then it sends out 1 email with all the attachments, then clears the attachments list.

     

    In order for this to be successful, the Excel file has to be sorted by the 'email to' field.

     

    Good luck!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you very much for your answer, but as you said, I'm not using PAD but PA flows. Do you have suggestions on how to use this same logic there? 

     

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Anonymous 

     

    Would it be possible to share a sample file to get an idea how to do  and how to acheieve it ?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This is the structure of the excel file, what I need is to send, for example, a single email to Lara containing all the invoices I have under her name. 

    Microsoft Help screen .png

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Anonymous 

     

    You can try this way.

     

    I have created a table for demo purpose like below

    Nived_Nambiar_0-1681388398552.png

     

     

    Flow is designed like below

     

    1. List all rows present in the table

    Nived_Nambiar_1-1681388428439.png

     

     

    2. Select the email from the values which is output from List rows in tableaction.

    Nived_Nambiar_2-1681388561661.png

     

     

    3. Use apply to each loop to loop through each unique values of email like below

     

    Nived_Nambiar_3-1681388611163.png

     

    expression: union(body('Select_emails_'),body('Select_emails_'))

     

    4. Inside the loop follow below steps

     

     4.1 Filter the value with email = current iteration email

    Nived_Nambiar_4-1681389373163.png

     

     4.2 Now create HTML table out of filter array like below 

    Nived_Nambiar_5-1681389411402.png

     

    Here i am only considering Invoice num in table. You can other column if you need here , then use the output from create HTML table to be send via email.

     

    Nived_Nambiar_6-1681389519994.png

     

     

    Hope it helps 🙂

    Mark it as solution if it resolves your query 🙂

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    In the free version of Power Automate that I'm using I don't have the variables "Select emails" and " Filter values with each email value". Which version are you using? Thank you very much. 

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Anonymous 

     

    I am using developer version which is provided for learning purposes 

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 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard