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 email addre...
Power Automate
Answered

Extracting email address field from Person object

(1) ShareShare
ReportReport
Posted on by 17

I'm working on a flow that sends emails to multiple people.  I'm extracting Person fields from a SharePoint list field that can contain a number of Persons using the Apply to each function.  I then send the data to the Send an email function.

 

The problem that I'm having is that CurrentItem contains the comple Person struct and I need to extract just the Email field from this struct in order for the Send an email function to accept the parameter in the To field.

 

How can I extract this field?

 

Screen Shot.jpg

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @Kjell 

    I may not be understanding your goal totally, but I believe that you are storing the email addresses in the array.  If that is the case, you may want to remove the array.  You can simply loop through each person or group entry - you'll be able to select the email address.  If I am off base, please let me know.

    In my example, PG is a person or group column that allows mutliple entries.

    MultiPerson.jpg

     

     

  • Verified answer
    Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    if you hover over the current item you will see the JSON representation of the object.  YOu can take that string, enter it in the formula bar in dynamic content and then add ?['email'] to the end of it.  Insert that into the To blank and you'll have the email. It will look something like this

    items('Apply_to_each')?['Email']
  • Linda777 Profile Picture
    178 on at

    Hi Pstork1,

    I have the same issue. can I ask how to "hover over the current item you will see the JSON representation of the object"? I tried this below:

    Feb22_3.png

    got:

    items(('Apply_to_each')?['Requestor']?['Email'])

    Put on it on "Required attendees" field:

    Feb22_2.png

     

     

     

     

     

     

     

     

     

     

    got error message:

    Feb22_4.png

    Please advice.

    Thank you very much.

    Linda

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    You can't use a value from inside the Loop after the Loop has closed.  That's why I suggested appending the Email to a string variable. The values in the variable will remain after the loop completes.

     

    If you hover over an item in the flow a tooltip will appear that shows the JSON for that item.  see screenshot. This is the loop structure I am suggesting.  When you are done the variable will have a list of emails from the people column.  NOTE: its not in the screenshot but you need to add a semicolon after the email when appending to the string to use it as an address.

    screenshot.png

  • Linda777 Profile Picture
    178 on at

    Hi Pstork1,

     

    It works very well. Thank you very 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

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 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard