web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collect from Combobox ...
Power Apps
Answered

Collect from Combobox into gallery

(0) ShareShare
ReportReport
Posted on by 6

Hi,

So I am using a combobox with microsoft users as a data source, I then need to make a collection from those users but only collecting their name, location and email columns. I then have to use the collection as a data source for a gallery. I have done the above but when I select more than one person from the combobox it only puts one person in the gallery. I need to fill a new gallery item for every person selected. This is what I have done for the onselect property of the button:

GS99_0-1692902856973.png

Any help would be much appreciated!

Categories:
I have the same question (0)
  • Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @GS99 ,

     

    Please try this formula to display the multiple items selected in a combo box,

     

    Concat(ComboBox1.SelectedItems, Value & " ")

     

    Thanks!!!

     

    If my response has been helpful in resolving your issue, I would suggest you consider clicking "Accept as solution" and "Give it a thumbs up" as a token of appreciation.
  • GS99 Profile Picture
    6 on at

    Hi, I am able to fill the collection and gallery by simply using .SelectedItems, the issue is that my task is to only collect the 3 columns I mentioned. When I try to do that, I use selected.DisplayName... etc and it only shows one of the selected items rather than all of them. I understand I can use SelectedItems but thats not quite what my task is 

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @GS99,

     

    You can loop through the selected items and use the Collect() function:

    Clear(col_info);
    ForAll(
     ComboBox1.SelectedItems,
     Collect(
     col_info,
     {DisplayName: ThisRecord.DisplayName, City: ThisRecord.City, Mail: ThisRecord.Mail}
     )
    )

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • GS99 Profile Picture
    6 on at

    That makes sense.... Thank you!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard