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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,727)