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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard