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 / Convert "People or Gro...
Power Automate
Unanswered

Convert "People or Group" column from a "SharePoint" List to a String expression in Power Automate

(0) ShareShare
ReportReport
Posted on by 79

ALL, 

 

Maybe this has been answered but I cannot find a clear list of instructions....

 

Need some detailed instruction here:

In a SharePoint List, I have an input field called "InviteeList" which is a "People or Group" column which allows one or more people to be added from Active Directory.  The data in this field is an array of data for each person with headers of Name, email, picture, etc...  I just want the email addresses pulled and made into a string to use where I want.

 

In Power Automate, I want the email addresses from this field of one or more people to be a STRING that I can use in my Power Automate flow.  If I use "InviteeList" from the Dynamic link when the item is created, it does the loop for EACH person listed in that field.  I want the email or emails of those people in the field to be in a single string so I can use it where I want to send a group email.  One email.

 

If the "InviteeList" has one person or many, then I want the output to be "example1@company.com; example2@company.com;"   and so forth.

 

Is there a straight forward step by step instruction to create this variable string?

 

Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    In my demo list Assigned to is a Person field. The displayed record has three people assigned to a task:

    ekarim2020_0-1629225819358.png

    To get all their email addresses in to a single string, initialize a string variable:

    ekarim2020_3-1629226392896.png

    Then add an Append to string variable action, add the dynamic content looking for the People field's email property, next (add a space if you want better  readability of the string) add a semi-colon character to then end of string. In the demo below I added the Assigned To Email dynamic content, a space character and a semi-colon character:

    ekarim2020_2-1629226373705.png

    Then, as if by magic, Power Automate surrounds the Append to string variable action inside an Apply to each loop:

     

    ekarim2020_4-1629226659668.png

    In the Send an email action switch to advanced mode:

    ekarim2020_5-1629227279650.png

    Select the variable var EmailAddress as the recipient:

    ekarim2020_6-1629227335814.png

    Hope this helps.
    Ellis

     

  • JohnGorena Profile Picture
    79 on at

    Ellis, 

     

    It is magic.  You are a Magician!  THANK YOU!

     

    However, for clarity for anyone reading this, in the APPLY TO  EACH step, be sure to put a semicolon and a space...   You will also notice there is an "Add an action" link that nests an action there.  I only test by click the "+" as a separate step.

     

     

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard