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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

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.

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