cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jkeckard007
Level: Powered On

Get the first person email from People Picker that is set to allow multiple people.

I am attempting to get the first person in a Sharepoint list people picker field's email.  I get all the emails because of the apply to each function.  I know I could put them in an array and then get the first one from the array but that seems inefficient.  Is there a better way?

See what I have below.  Ultimately I will then take that email and compare it to another SharePoint list to get that person's Department Head.  And no I can't use User Profile because the Department Head is different than the Manager in AD. Thank you for your help this community has helped me a lot!

Cardholder.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Get the first person email from People Picker that is set to allow multiple people.

Hi @jkeckard007,

 

I have made atest on my side, please refer to screenshot below to create the flow:

Capture.PNG

 

The expression in the Compose as below:

triggerBody()?['CardHolder'][0]?['Email']

When an item is created in the sharepoint list below:

Capture.PNG

 

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Alice

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Get the first person email from People Picker that is set to allow multiple people.

Hi @jkeckard007,

 

I have made atest on my side, please refer to screenshot below to create the flow:

Capture.PNG

 

The expression in the Compose as below:

triggerBody()?['CardHolder'][0]?['Email']

When an item is created in the sharepoint list below:

Capture.PNG

 

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Alice

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,063)