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.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

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