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 / ComboBox Selection not...
Power Apps
Unanswered

ComboBox Selection not fully patching to SP List

(0) ShareShare
ReportReport
Posted on by
Spoiler (Highlight to read)

Hi,

I have a powerapps form that has text input boxes and comboboxes for users to fill and submit. This updates a list on sharepoint. The comboboxes also populate the choices from the sharepoint list.

The combobox name is DataCardValue40. The patch formula does not let me write 'Business Line':Table(DataCardValue40.SelectedItems) and throws an error. If I write 'Business Line':Table(DataCardValue40.Selected), it accepts but then it only updates the first selection my SP list. Business Line is the Column which I want updated with the selection of choices.

Need help to fix this.

Hi,I have a powerapps form that has text input boxes and comboboxes for users to fill and submit. This updates a list on sharepoint. The comboboxes also populate the choices from the sharepoint list.The combobox name is DataCardValue40. The patch formula does not let me write 'Business Line':Table(DataCardValue40.SelectedItems) and throws an error. If I write 'Business Line':Table(DataCardValue40.Selected), it accepts but then it only updates the first selection my SP list. Business Line is the Column which I want updated with the selection of choices.Need help to fix this.
Categories:
I have the same question (0)
  • notj Profile Picture
    782 on at

    Is your column in SharePoint set to allow multiple selections?

  • Community Power Platform Member Profile Picture
    on at

    Yes it is.

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @Anonymous ,'

    You are Patching a number of values to a multiple value Choice field, which is a table, so the syntax for this field should be as below

    'Business Line': ForAll(
     DataCardValue40.SelectedItems As aBL,
     {Value: aBL.Value}
    )
    

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @Anonymous ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • v-xiaochen-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Could you tell me:

    1. Do you have a button control in the edit form?
    2. Do you use the pathc() function to submit records?

     

    If my assumptions are correct, the point is that the formula requires data of table data type.

    1. When you use the selected property of the combo box control, it selects the first option among all the options. The data type of this option is a record. So use the table() function to convert the record type to the table type.
    2. However, when you use the selectedItems property of the combo box control , It selects the options you selected. Its data type is table already. Therefore, there is no need to use the table() function to convert it.

     

    You could try the following code:

    Patch(LIST33,Defaults(LIST33),{Title:"1",'Business Line':DataCardValue40.SelectedItems}) // LIST33 Is my list name.

     

    Best Regards,

    Wearsky

  • v-xiaochen-msft Profile Picture
    on at

    Hi @Anonymous  ,

     

    Could you tell me:
    Has the problem been solved?
    Is there anything else I can help?

     

    If my post helps, then please consider Accept it as the solution to help others.Thanks
    Best Regards,
    Wearsky

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