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 / Combobox multiple sele...
Power Apps
Answered

Combobox multiple selection patch to SharePoint

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Power Apps community,

 

I have a problem about Power Apps and have no idea to solve after searching and testing.

Here is the background:

I have a combo box 'ComboBox3' which for select Team Member at Power Apps which allows multiple selection.

And there is a Share Point list 'Shift Turn Registration' to collect records.

There is a columns at Share Point list 'Shift Turn Registration':

Column Name: TeamMember;  Column Type: Single Line of Text.

When i select 2 items at Combo Box and click button 'Apply' at Power Apps, there will be 2 records created at SharePoint list.

 

Below is my formula:

2.png

 

And here is my apps:

3.png

 

When i am trying to patch the values back to my database table, apps pop up an alert like this:

1.png

 

If anyone knows what's the problem and how to improve.

Thanks in advance !

Categories:
I have the same question (0)
  • DanishIslam Profile Picture
    108 on at

    Hi JOEANLI,

     

    Considering your combobox is a simple choice column, modify your formula as below-

     

    ClearCollect(ShiftTurnSelectedUser,ComboBox3.SelectedItems);ForAll(ShiftTurnSelectedUser,Patch('Shift Turn Registration',Defaults('Shift Turn Registration'),{Title:1, TeamMember:Value}))

     

    Hope this helps.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @DanishIslam 

    Hi dear,

    I tried with your method, but there was still an alert.

    Could u please help to review.

    Thank u soooooo much!

    4.png

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a bit more about your scenario?

    Do you want to patch multiple selections from your ComboBox back to your SP list as separated rows?

    Further, could you please share a bit more about the formula you typed within the Items property of the ComboBox? Is it set to a Distinct formula? Or is it bind to a Person type column from a SP List?

     

    Actually, it is not necessary to collect the multiple selections from the ComboBox into a collection firstly. I have made a test on my side, please consider take a try with the following workaround:

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

    ForAll(
     ComboBox3.SelectedItems,
     Patch(
     'Shift Turn Registration',
     Defaults('Shift Turn Registration'),
     {
     Title: 1,
     TeamMember: ColumnNameFromComboBox3
     } 
     )
    )

    Note: The ColumnNameFromComboBox3 represents the column from the ComboBox3.SelectedItems formula, which you used as display column value within the ComboBox3.

     

    In addition, if the Items property of the ComboBox3 is set to a Distinct formula, please modify above formula as below:

    ForAll(
     ComboBox3.SelectedItems,
     Patch(
     'Shift Turn Registration',
     Defaults('Shift Turn Registration'),
     {
     Title: 1,
     TeamMember: Result
     } 
     )
    )

     

    If the ComboBox3 is bind to a Person type column in a SP List, please modify above formula as below:

    ForAll(
     ComboBox3.SelectedItems,
     Patch(
     'Shift Turn Registration',
     Defaults('Shift Turn Registration'),
     {
     Title: 1,
     TeamMember: DisplayName
     } 
     )
    )

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi@v-xida-msft 

    I want to patch multiple selections from ComboBox back to SP list as separated rows.

    And i tried with your formula as:

    ForAll( ComboBox3.SelectedItems, Patch( 'Shift Turn Registration', Defaults('Shift Turn Registration'), { Title: 1, TeamMember: DisplayName } ) )

     

    It worked!!!! OMG!!!!

    This problem has stalled my development. Now it solved!

    I don't know what else can say to you except to be grateful!💓

  • Harris021 Profile Picture
    181 on at

    @v-xida-msft Hi, I have very similar issue, because of 5000 records lookup limitation, I have customize my SP library with PowerApps. Below code is my item property for my combo box.

    If(IsBlank(DataCardValue4.SearchText), Filter('FileService_neats.Alf', StartsWith(FileName, "1")),Filter('FileService_neats.Alf', StartsWith(FileName, DataCardValue4.SearchText)))

    Multi selection is enabled in both SharePoint and PowerApps.

    I have created a Save button and I added your code under OnSelect attributes.

    ForAll(
     DataCardValue4.SelectedItems,
     Patch(
     'Harris Document Testing 5000 records',
     Defaults('Harris Document Testing 5000 records'),
     { 
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Title: 1,
     FileNmae:FileNmae_DataCard1DataCardKey1
     }
     )
    )

    However, I am still having issue. can you please help. 

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 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard