cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (8,805)