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 / Getting email from mul...
Power Automate
Unanswered

Getting email from multiperson SharePoint fields

(0) ShareShare
ReportReport
Posted on by 402

I have a flow that will run on the first of each month, get the month and then filter a sharepoint list based on that month.  This part works with no issue.  Next, I need to get both the Lead and CoLead email(s) from each record that is extracted. I am trying to append the email to the array but find it difficult to get the proper syntax to get that email.  I am trying item()?['Lead]]?['Email'] but I get an error.  I also need to not only get the Lead email, but the CoLead email, and then do a DISTINCT, so they are not duplicated.

 

I get this - 'item()?['Lead']?['Email']' cannot be evaluated because property 'Email' cannot be selected. Array elements can only be selected using an integer index.

 

I appreciate any help and direction for this.

Categories:
I have the same question (0)
  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Hi @iskguy 
    Use 2 selects (switch mapping to text mode) then use a compose with the union function to get distinct emails from both selects and finally a compose with the join function to join the distinct emails with semi-colons ;

    e.g.

    DJ_Jamba_0-1716909833120.png

     

    Map selects to item()?['Email']

    DJ_Jamba_1-1716909884456.png


    Distinct email array

    DJ_Jamba_2-1716909973173.png

    union(body('Select_Lead_Emails'),body('Select_CoLead_Emails'))

     

    String of distinct emails

    DJ_Jamba_3-1716909997351.png

    join(outputs('Distinct_Email_array'),';')

     

  • iskguy Profile Picture
    402 on at

    Thanks for this reply. I think my main issue is mapping to the actual email.  This is coming from a list of records that are filtered by month.  So when I do the first Select, it wants to wrap around an Apply To Each.  Would that work the same?  Would it be item()?['Lead']?['Email']?  Or items()??['Lead']?['Email']?

  • iskguy Profile Picture
    402 on at

    For instance, this works, but comes up with NULL values and there are not null values 

    iskguy_0-1716923999846.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 248 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 142 Super User 2026 Season 2

Last 30 days Overall leaderboard