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 different combob...
Power Apps
Answered

Patch different combobox value selection need a seperate entry in sharepoint list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I need help with formulas here.

 

I have a sharepoint list as below

 

sharepoint.JPG

 

My powerapps 

 

Patch.JPG

 

Patch formula

variation 1

 

ForAll(
 Index_combobox.SelectedItems,
 Patch(
 'Edgeband order sequence',
 Defaults('Edgeband order sequence'),
 {
 Index:Index_combobox.Selected.Value,
 Priority:Priority_dropdown.Selected.Value
 }
 )
);Reset(Index_combobox);
Reset(Priority_dropdown)

 

variation 2

 

ForAll(
 Index_combobox.SelectedItems,
 Patch(
 'Edgeband order sequence',
 Defaults('Edgeband order sequence'),
 {
 Index:Value,
 Priority:Priority_dropdown.Selected.Value
 }
 )
);Reset(Index_combobox);Reset(Priority_dropdown)

 

I tried 2 formulas, I have problem with making the patch formula work.

 

The app intention is when multiple values on combo box choosen, it creates seperate sharepoint list for each choosen values from the combo box.

 

Any help is appreciated.

 

Thanks in advance.

 

Categories:
  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    @Anonymous ,

    What is the error you are getting? I cannot test this (not on PC) but if you are Patching back to a Choice field, this should work apart from the possible ambiguity (you have to patch back to the Value and you are patching the same name).

    ForAll(
     Index_combobox.SelectedItems,
     Patch(
     'Edgeband order sequence',
     Defaults('Edgeband order sequence'),
     {
     Index:
     {Value:Value},
     Priority:Priority_dropdown.Selected.Value
     }
     )
    );
    Reset(Index_combobox);
    Reset(Priority_dropdown)

     

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz ,

     

    I got these 2 errors in the formula i used 

     

    ForAll(
     Index_combobox.SelectedItems,
     Patch(
     'Edgeband order sequence',
     Defaults('Edgeband order sequence'),
     {
     Index:Index_combobox.Selected.Value,
     Priority:Priority_dropdown.Selected.Value
     }
     )
    );Reset(Index_combobox);
    Reset(Priority_dropdown)

     

    1.

    issue1.JPG

    2.

     

    issue2.JPG

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz ,

     

    I tried your new formula still showing me the same error.

     

    issue1.JPGissue2.JPG

  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    @Anonymous ,

    Yes - that is exactly what I thought the issue was. Your second formula is close as when using a ForAll on a ComboBox Selected Items, you do not have to tell the code again where to find the information - you just refer to it as Value. To complicate this, you are writing back to a choice field which also needs Value specified as the target. Did you try the code I sent?

     

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @WarrenBelz 

     

    I tried the new formula, but still getting the same error.

  • WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    @Anonymous ,

    A you still running with this - I saw your new post where you are doing something else.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes i am going to use both the variations on different purpose on different departments one need combobox and other need tex input.

     

    you can consider both the  post valid and open looking for help.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    It looks like that the Index is a Choice type column, right?

    From the error message, you can find that the index requires a record, not a Table(Index_combobox.Selected.Value) or a Text (Value).

    @WarrenBelz 'suggestion that patch the record {Value:Value} for index column should make sense for your case. 

     

    Please have a try on his code to see if your issue is fixed.

     

    Sik

  • Verified answer
    WarrenBelz Profile Picture
    156,956 Most Valuable Professional on at

    @Anonymous ,

    My code should work, but it does not. I have spent some time on a test app and have admitted defeat.

    There is something different about multi-choice combo boxes that will not work like a normal choice column and expect a "table". I will be honest - I would not attempt this myself if there was an alternative such as simply writing to another text field - have you considered this? I think you might look at managing your data rather than let it manage you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz ,

    Thanks for all help.

    Your Text solution on other post thread worked. I am using that.

    I just have additional question on Text solution, i will ask you there on that thread.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard