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

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
Impactful Individual
Impactful Individual

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

Welcome to the User Group Public Preview

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

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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 (3,097)