cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jdcollier136
New Member

Get email of Person selected in People/Group Picker

I am new to PowerApps and while I've found some threads on this subject, the answers are dated or unclear - I'd like to get confirmation.

 

I need to obtain the email address of a person selected in a People Picker drop down field. This is a "People or Group" object. The goal is to be able to send an email to the person selected. I tried "Form.LastSubmit.Person.Email" because it doesn't need to send the email until the form is submitted.

 

This appears to return "blank". I tried adding it to a label so I could inspect the value (like Shane Young recommends) but of course it's from LastSubmit... I don't see an option for something like "Form.Selected.Person.Email".... or similar. 

 

Ultimately, all I want is the email of the person selected in the People picker, and to then send them an email with the Office365Outlook.SendEmailV2() method.

 

I'd appreciate any help or guidance. Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @jdcollier136,

Have you solved your problem?

Do you want to send email to the people picker selected email after submitting the form?

Could you please tell me that if the people allows multi select or not?

I assume that your people picker allows single select, then you could set the OnSuccess property of the form so that you could capture the Form.LastSubmit.Person.Email in time.

Set the OnSuccess property of the form as below:

Office365Outlook.SendEmailV2(
    EditForm1.LastSubmit.Employee.Email,
    "testforfun",// Here is the Subject
    "HolaFriday!" // Here is the Body
)

vqiaqimsft_0-1631848370996.png

 

Best Regards,
Qi

View solution in original post

1 REPLY 1
v-qiaqi-msft
Community Support
Community Support

Hi @jdcollier136,

Have you solved your problem?

Do you want to send email to the people picker selected email after submitting the form?

Could you please tell me that if the people allows multi select or not?

I assume that your people picker allows single select, then you could set the OnSuccess property of the form so that you could capture the Form.LastSubmit.Person.Email in time.

Set the OnSuccess property of the form as below:

Office365Outlook.SendEmailV2(
    EditForm1.LastSubmit.Employee.Email,
    "testforfun",// Here is the Subject
    "HolaFriday!" // Here is the Body
)

vqiaqimsft_0-1631848370996.png

 

Best Regards,
Qi

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,515)