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 / Patch Combobox selecte...
Power Apps
Answered

Patch Combobox selected items to a Column in Collection

(1) ShareShare
ReportReport
Posted on by 1,123
Hello Power Users,
I have a column called AreaofImprovement in my collection. I would like to patch selected items from a combo box to this column. But how do we patch a table (selected items from combo box) to a column in collection? When I used below snippet and trying to patch, it patches only the last selected item from my combo box(may be overwriting previous selected values) but not all. Please help!

 

ForAll(
ComboBoxImprov.SelectedItems,
Patch(
ColOTJSession,
First(ColOTJSession),
{AreaofImprovement: ThisRecord.Value}
)
);

 

Categories:
I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @RameshMukka 

    Patch(
             ColOTJSession,
             First(ColOTJSession),
             {AreaofImprovement:ComboBoxImprov.SelectedItems}

         )

     

    should solve your issue.

    Hope it helps !

  • rameshmukka Profile Picture
    1,123 on at

    @gabibalaban I have already tried this and I got below error.

     

    RameshMukka_0-1604766959003.png

     

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Well... it seems that you have in other place of your app AreaofImprovement column defined as text.

    In this case, use:

    Patch(
             ColOTJSession,
             First(ColOTJSession),
             {AreaofImprovement:Concat(ComboBoxImprov.SelectedItems,Value&";")}

         )

     

  • Verified answer
    rameshmukka Profile Picture
    1,123 on at

    @gabibalaban I was able to resolve this using the same snippet above but this time I initialized my collection column as AreaofImprovement : [""]

  • KaufnNailer Profile Picture
    on at

    Concat worked for me! Thanks!

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard