Skip to main content

Notifications

Community site session details

Community site session details

Session Id : rhksJ7pHOUyiykvul0tfiT
Power Apps - Building Power Apps
Answered

Patch multi select combobox as choice column

Like (0) ShareShare
ReportReport
Posted on 21 Jun 2022 10:20:36 by 117

Hi everybody

 

I have a combobox which has choices from a choices field in SharePoint (the formula for the combobox is: Choices([@'DataSource'].Disabilities) and it is set as SelectMultiple: true

 

I'm trying to patch multiple values and I've tried many different formulas but nothing seems to work.

 

I've tried creating a collection and patching that and tried patching as 

 

evalindag_2-1655806806012.png

 

evalindag_0-1655806653130.png

 

evalindag_1-1655806679027.png

 

 

Any help much appreciated 🙂

 

Best regards

Eva

 

Categories:
  • ShefiBasheer Profile Picture
    9 on 21 Jun 2022 at 11:48:10
    Re: Patch multi select combobox as choice column

    On the "update" property of the datacard use the concat function

    Concat(ComboBox1.SelectedItems, Disabilities,",")

  • evalindag Profile Picture
    117 on 21 Jun 2022 at 11:39:15
    Re: Patch multi select combobox as choice column

    Hi @Mink21 & @Silvester 

     

    It was the SharePoint setting for allowing more than one value that was causing the error 🙂 🙂 🙂

    I changed it and the formula now works as a charm

     

    Thank you so much for your help!

     

    Best regards

    Eva

  • Verified answer
    Mink21 Profile Picture
    158 on 21 Jun 2022 at 11:26:31
    Re: Patch multi select combobox as choice column

    Hi @evalindag ,

     

    I understood it wrong then.

    Try this:

     

    Patch(YourTable, Defaults(YourTable), {Disabilities: ComboBox1.SelectedItems})

    Make sure your column in SharePoint allows more than one value.

     

  • evalindag Profile Picture
    117 on 21 Jun 2022 at 11:19:31
    Re: Patch multi select combobox as choice column

    Hi @Mink21 

     

    I tried this and it works but it saves each selected value in the combobox as a different item in sharepoint. I want them to save as one item 🙂

    Can I change this formula so it saves them all in one line?

     

    evalindag_0-1655810330754.png

     

    best regards

    Eva

     

  • Silvester. Akakpo Profile Picture
    783 on 21 Jun 2022 at 10:42:21
    Re: Patch multi select combobox as choice column

    Hi @evalindag ,
    Check this post from @mdevaney ,
    PATCH A SharePoint Choices Column With Multiple Values In Power Apps - Matthew Devaney, you should be sorted.
    Kindly let me know how it goes.
    Mind giving this post a thumbs up? Please accept it as a solution if it works for you.

  • Mink21 Profile Picture
    158 on 21 Jun 2022 at 10:39:33
    Re: Patch multi select combobox as choice column

    Hi @evalindag 

     

    Try this:

    ForAll(ComboBox1.SelectedItems,
    Patch(YourTable, Defaults(YourTable), {Disabilities: ThisRecord})
    )

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 42 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 36

Overall leaderboard