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 issues combobox
Power Apps
Answered

Patch issues combobox

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

Unfortunately it is not possible to select multiple values in a dropdown control. However I have tried to use combo boxes to multi select options. Now I have come accross a problem that I cannot solve and I have wandered around the forums a lot lately. 

 

In essence I am trying to make an advanced form which people can fill in and which is saved to a sharepoint list database. Patching single select dropdown controls have not been a problem for me with this type of syntax: 

 

Country(Column name in SP list):{'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id:1,
Value:DrpCountry(dropdown control).Selected.Value}

 

However if I would for example ask to which countries someone has been in the last year I want them to pick multiple options. Combobox offers this multiple selection but if I try to use the patch syntax for this it won't create a new entry in the Sp list. It gives an unknown error. 

 

Anyone got better ideas on how to patch multiple selections in a new entry on a sharepoint list? I would be glad to hear so.  

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Could you please share a bit more about your app's configuration?

    Further, could you please show a bit more about the Country column in your SP list? Is it a Choice type column which has allowed multiple selections?

     

    I assume that Country column is a Choice type column in your SP list, which has allowed multiple selections. I have made a test on my side, please take a try with the following workaround:3.JPG

     

    4.JPG

     

     

    Set the OnChange property of the Combo box control (On my side, it is DataCardValue3) to following formula:

    Clear(CountryTable);
    ForAll(
    DataCardValue3.SelectedItems,
    Collect(
    CountryTable,
    {
    '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    Id:CountRows(CountryTable),
    Value:Value
    }
    )
    )

    Set the OnSelect property of the "Submit" button to following formula:

    Patch(
    '20180720_case6',
    Defaults('20180720_case6'),
    {
    Title:DataCardValue1.Text,
    EmployeeName:DataCardValue2.Text,
    Country:CountryTable
    }
    )

    Note: The '20180720_case6' represents the SP list data source within my app. The Country is a Choice type column in my SP list , which allows multiple selections.

     

    The GIF image as below:Test1.gif

     

     

     

     

     

    Best regards,

    Kris

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That helped a lot. Thankyou Kris!

  • jharville1 Profile Picture
    183 on at

    Where did you initially create the CountryTable?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard