cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jkeckard007 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
Community Support
Community Support

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

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,033)