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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 298 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 159 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 150 Super User 2026 Season 2

Last 30 days Overall leaderboard