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

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

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (5,077)