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 / Combine data to a sing...
Power Automate
Answered

Combine data to a single email

(0) ShareShare
ReportReport
Posted on by 23

Hi,

 

I am pulling data from an excel table into flow in order to send emails. Each excel row has 'ID' , 'NAME', 'EMAIL',...etc

I have created a manually trigger a flow --> List rows present in a table --> Apply to each (Send an email (V2)).

 

The issue that I am facing is that if the same 'ID' appears e.g. 3 times in the table, it will send 3 emails to the same person.

What I need is all rows having the same 'ID' or 'EMAIL' to be combined in a single email but to include all data of the rows.

 

In other words

 

IDDATAEMAIL
1234DATA1someone@somewhere.com
1234DATA2someone@somewhere.com
5678DATA3somebody@nowhere.com

 

If rows have the same 'ID' to get together in a single email and get the sum. So it will show something like

 

IDDATA
1234DATA1
1234DATA2
 =SUM (DATA1+DATA2)

 

And then the rest of the rows (I have accomplished this and it works without issues)

 

IDDATA
5678DATA3

 

Thank you

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Galanopd 

    Can you please check below topic for a similar issue:

    https://powerusers.microsoft.com/t5/Building-Flows/Group-BY-in-Flow-to-send-email-of-aggregated-data/td-p/397420

     

  • Galanopd Profile Picture
    23 on at

    Hi,

     

    Thank you for your response but I am not sure if this solutions suits my case.

    The recommended example it is using 'Get items' from Sharepoint, I am using just an excel table from Onedrive.

     

    Unless I do something wrong, the solution doesn't really help.

    Any alternative?

     

    Thank you

  • Galanopd Profile Picture
    23 on at

    @Mira_Ghaly 

     

    After all, I think you might be correct...

    Haven't solved my problem yet but I am working on it!

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Galanopd

    Glad to hear let me know if you need more help on that.

     

  • Verified answer
    Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Galanopd 

    Thanks for reaching out!

     

    I have made a detailed flow that match your requirement and I am describing it below:

    1. List Rows Present in a table

    2. Select step pass the ID as below which is the Customer ID

    3. Add a new variable of Type Array and Set its name to Unique Customer ID Name and add the union Expression

    Mira_Ghaly_0-1622429851571.png

    Union Expression as below:

     

    union(body('Select'),body('Select'))

     

     

    Mira_Ghaly_1-1622431176022.png

    Then if we added a Create HTML Table:

    Mira_Ghaly_2-1622431217075.png

    To get the sum you need to apply below:

    Mira_Ghaly_1-1622443080157.png

    Expression for Adding Sum:

    add(outputs('Value'),variables('Sum'))

     

     

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard