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 / 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

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard