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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (39,984)