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

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
Community Champion
Community Champion

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 Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,192)