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 / Send Email with multip...
Power Automate
Unanswered

Send Email with multiple items based on like emails

(0) ShareShare
ReportReport
Posted on by 611

I'd like to send an email based on a sql table that will combine rows into the same email if the users are the same. 

 

For Example, I have this example list:

 

Project ManagerProject DirectorProject
John.allen@company.comalissa.findafar@company.com100.100004.5
anderson.daffer@company.comalonzo.otal@company.com200.7568.76543
bria.diaz@company.comconn.batista@company.com8909.7534.4352
bria.diaz@company.comconn.batista@company.com8263.92837.01
Holy.camfor@company.comconn.batista@company.com9384.9834.74

 

In the above list Bria and Conn would get their Projects combined (since they need only 1 email with all projects not two separate emails). But when the project manager is Holy, Conn would get a separate email for that project.

 

So there would be 4 total emails: 

 

Project ManagerProject DirectorProject 
John.allen@company.comalissa.findafar@company.com100.100004.5Email 1
anderson.daffer@company.comalonzo.otal@company.com200.7568.76543Email 2
bria.diaz@company.comconn.batista@company.com8909.7534.4352Email 3
bria.diaz@company.comconn.batista@company.com8263.92837.01Email 3
Holy.camfor@company.comconn.batista@company.com9384.9834.74Email 4

 

How do I group the emails to make this work? 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @TesDA ,

     

    I did a sample for you.

    vxiaochenmsft_2-1641180708829.png

     

    vxiaochenmsft_1-1641180654749.png

    [
     {
     "Project Manager": "A",
     "Project Director": "B",
     "Project": "100.100004.5"
     },
     {
     "Project Manager": "C",
     "Project Director": "D",
     "Project": "200.7568.76543"
     },
     {
     "Project Manager": "E",
     "Project Director": "F",
     "Project": "8909.7534.4352"
     },
     {
     "Project Manager": "E",
     "Project Director": "F",
     "Project": "8263.92837.01"
     },
     {
     "Project Manager": "G",
     "Project Director": "F",
     "Project": "9384.9834.74"
     }
    ]

    vxiaochenmsft_3-1641180720190.png

    item()['Project Manager']
    item()['Project Director']
     
    vxiaochenmsft_4-1641180765246.png
    union(body('Select'),body('Select'))
    @and(equals(item()['Project Manager'], items('Apply_to_each')['Project Manager']),equals(item()['Project Director'], items('Apply_to_each')['Project Director']))

     

    vxiaochenmsft_6-1641180813437.png
    vxiaochenmsft_7-1641180822626.png

     

    vxiaochenmsft_8-1641180888425.png
    vxiaochenmsft_9-1641180904377.png

     

    Best Regards,

    Wearsky

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard