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 / Remove duplicate Email...
Power Automate
Answered

Remove duplicate Emails and send Various Rows

(0) ShareShare
ReportReport
Posted on by 4

Hello,

I have an excel document with the following columns.

User Name, Email, Product, Price

Bob Smith, bobsmith@go.com, Red, $9.99

Bob Smith, bobsmith@go.com, Blue, $29.99
Jenny Lang, jenlang@go.com, Yellow, $9.99

I want to send an email to only Bob Smith with his 2 line items.

 

So Far

  1. List Rows present in table
    1. Table
  2. Apply to Each
    1. Initialize variable
      1. SingleEmail
      2. Array
      3. Email
    2. Compose
      1. Expression: union('SingleEmail')
  3. Apply to Each
    1. select output from previous steps:  'SingleEmail'
    2. Send an email (V2)
      1. To: 'SingleEmail'
      2. Body: Hi [User],
        You have these purchases

        Red, $9.99

        Blue, $29.99

-------------------

1. How do I remove the duplicate emails

2. How do I send all the line items with that email

 

Thanks in advance.

Categories:
  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @eddyamejia,

     

    You could refer to these steps to send emails to different emails and without duplicate Emails:

    Annotation 2020-09-03 105164.jpg

     

    Annotation 2020-09-03 105165.jpg

     

    Annotation 2020-09-03 105166.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • eddyamejia Profile Picture
    4 on at

    Hi @v-litu-msft ,

    I am having issues running it.  It gets stuck at Filtering array.

     

    powerissue.PNG

     

     

    Here is the programming

    powerissue2.PNG

  • eddyamejia Profile Picture
    4 on at

    nevermind.  I had not named "Email" above....  It works thank you so much!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard