cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
VilPel
Helper II
Helper II

Selecting all Users by default in Combo Box

Hello guys,

 

I'm pretty new to Power Apps development and I'm wondering how to implement my idea. First of all, I want to have a combo box in my form that searches people inside my organization and allows multiple selections. The second step, that I assume is a little bit harder is... how can I select all the all the users in my organization by default when the user opens the form? To demonstrate my dream, I have posted an picture below of what I'm looking for. The user opens the form - boom, all the users in my organization are already selected by default!

asgn.png

Thanks, 

 

Ville

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi@VilPel,

Based on the issue that you mentioned, do you want to populate the Combo Box with all the users in your organization?

Could you please share a bit more about your scenario?

In my scenario, I have connected Office365Users to my app.

Set Items property of the Combo Box:

Office365Users.SearchUserV2({searchTerm:ComboBox5.SearchText}).value.DisplayName

Set DefaultSelectedItems property of the Combo Box:

Office365Users.SearchUserV2({searchTerm:""}).value.DisplayName

ooo.png

Regards,

Qi

Best Regards,
Qi

View solution in original post

3 REPLIES 3
zmorek
Super User
Super User

In the DefaultSelectedItems property of your combo box, try inputting your formula that you have in the Items property.

v-qiaqi-msft
Community Support
Community Support

Hi@VilPel,

Based on the issue that you mentioned, do you want to populate the Combo Box with all the users in your organization?

Could you please share a bit more about your scenario?

In my scenario, I have connected Office365Users to my app.

Set Items property of the Combo Box:

Office365Users.SearchUserV2({searchTerm:ComboBox5.SearchText}).value.DisplayName

Set DefaultSelectedItems property of the Combo Box:

Office365Users.SearchUserV2({searchTerm:""}).value.DisplayName

ooo.png

Regards,

Qi

Best Regards,
Qi

View solution in original post

@v-qiaqi-msft Exactly what I was looking for! Thanks 🙂

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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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