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 / Extracting Unique Emai...
Power Automate
Unanswered

Extracting Unique Email Address to Use in Send an Email Action

(0) ShareShare
ReportReport
Posted on by 53

This Power Automate expression extracts my unique email addresses:

 

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

 

It results like this: 

[
{
"Email": "person1@email.com"
},
{
"Email": "person2@email.com"

},

{

"Email": "person3@email.com"
]

 

However for me to use it inside the Send an Email (V2) action I believe I need the email addresses to look like this separated by a semi-colon:

 

Person1@email.com;Person2@email.com;Person3@email.com

 

How can I create this output?

Categories:
I have the same question (0)
  • grantjenkins Profile Picture
    11,063 Moderator on at

    In your Select you need to switch to Text mode, so it returns a simple array of emails (not an array of objects with Email property).

     

    grantjenkins_0-1678491311884.png

     

    Then, when you use union(body('Select'),body('Select')) it will result in the following output.

     

    [
     "person1@email.com",
     "person2@email.com",
     "person3@email.com"
    ]

     

    Finally, you can use the following expression to join the emails together, separated by a semicolon.

     

    join(YOUR_ARRAY_OF_EMAILS, ';')
    
    //Result
    "person1@email.com;person2@email.com;person3@email.com"

     

    ----------------------------------------------------------------------
    If I've answered your question, please mark the post as Solved.
    If you like my response, please consider giving it a Thumbs Up.

  • coolbeans23 Profile Picture
    53 on at

    My select looks like this after I switch to text mode.  I'm basically renaming the Mail_Group column to Email.  Should I just do this to the source data in Excel?

     

    coolbeans23_0-1678726454959.png

    After using the join expression you showed. I do not see my expression resulting like person1@email.com;person2@email.com;person3@email.com.

    The result is below when I tested. Look like this:  {"Email":"person1@email.com"};{"Email":"person2@email.com"};{"Email":"person3@email.com"}

    coolbeans23_2-1678732155723.png

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 495

#3
Vish WR Profile Picture

Vish WR 429

Last 30 days Overall leaderboard