cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lobstahBisque
Regular Visitor

Populating Office365Users text field based on Office365Users dropdown

I'm trying to populate a field in a form. My form goes to an excel sheet and two of the fields need to be connected to the Office365Users data. I have the dropdown completed (which displays the DisplayName), but how can I populate a text field to show the chosen name's email address?

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @lobstahBisque ,

 

According to your description, I've made a test for your reference:

1\ Add a dropdown control ‘Dropdown1’ and set its Items property to:

Office365Users.SearchUser().DisplayName

 

2\ Add a label control and set its Text property to:

Concat(Office365Users.SearchUser({searchTerm:Dropdown1.Selected.DisplayName}).Mail,Mail,",")

 

3\ The result is as follows:

v-xiaochen-msft_0-1614044391709.png

 

v-xiaochen-msft_1-1614044391711.png

 

// In the second picture, two emails were found through the display name. Because displayname is not unique.

 

Best Regards,

Wearsky

If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @lobstahBisque ,

 

According to your description, I've made a test for your reference:

1\ Add a dropdown control ‘Dropdown1’ and set its Items property to:

Office365Users.SearchUser().DisplayName

 

2\ Add a label control and set its Text property to:

Concat(Office365Users.SearchUser({searchTerm:Dropdown1.Selected.DisplayName}).Mail,Mail,",")

 

3\ The result is as follows:

v-xiaochen-msft_0-1614044391709.png

 

v-xiaochen-msft_1-1614044391711.png

 

// In the second picture, two emails were found through the display name. Because displayname is not unique.

 

Best Regards,

Wearsky

If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

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.

Users online (2,791)