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

Community site session details

Session Id :
Power Automate - Building Flows
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.

I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    on at
    Re: Remove duplicate Emails and send Various Rows

    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
    Re: Remove duplicate Emails and send Various Rows

    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
    Re: Remove duplicate Emails and send Various Rows

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard