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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Loop excel and send co...
Power Automate
Unanswered

Loop excel and send combined email

(0) ShareShare
ReportReport
Posted on by

I have a excel table something like below:

 

Task Name, Duration, Status, Name, Email 

Task 1, 20, Open, ABC, abc@xxx.com 

Task 1, 20, Open, PQR, pqr@xxx.com  

Task 1, 20, Open, XYZ, xyz@xxx.com  

Task 1, 20, Open, ABC, abc@abc.com 

Task 1, 20, Open, PQR, pqr@xxx.com 

Task 1, 20, Open, XYZ, xyz@xxx.com 

 

I am using Power Automate Desktop flow and i am able to send loop through each record of the excel and send an email for the Open Tasks.

 

What I want to do is: Send 1 email to each resource calling out the tasks open form them with additional details in the row. So, in this case Desktop flow should send 3 email to ABC, PQR and XYZ respectively.

 

Any help ?

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

    We have a couple of posts on this logic, so I’ll give you the short version. 

    First, sort by email. Then…

    create list called attachments

    for each row

    set current email to email in row

    set next email to email in next row

    add attachments from current row to list attachments

    if next email <> current email, then send email with list attachments

    endif

    end loop

     

    this will loop through each row adding the data that you need to a list and then you can send one email with the entire list once it knows that the next row is not going to be the same email address. If the next row is the same email address, it will skip writing the email and move to the next row to add more to the list. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard