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 / Patch multi select com...
Power Apps
Unanswered

Patch multi select combobox items in different rows in SP

(0) ShareShare
ReportReport
Posted on by 7

Hi all, 
I have a simple case where I would like to save each selection made in a dropdown combobox to a different row in SP. 

The SP column is a single line text and combobox Item property is "Table({Item:"Op1"},{Item:"Op2"}) ". No fruitful results so far and I ve tried all combinations found online. 
E.g. I want to select Op1 and Op2 and save the records in two subsequent rows. With the script below I ve managed the same entry two times. 

Op App.PNG

Any help will be appreciated. 

Categories:
I have the same question (0)
  • Verified answer
    Anonymous_Hippo Profile Picture
    1,247 Super User 2024 Season 1 on at

    Hello @IL_for ,

     

    You are in the right direction ! we just need to make few tweaks in the code. While iterating we need to use the current record and not Combobox1.Selected.Item (because this will have all the selected value)

     

    We have two options

     

    //Option 1 works for collection/recor with only one column
    ForAll(ComboBox1.SelectedItems,Patch(Notifications,Defaults(Notifications),{Operator:Item}));
    
    //Option 2 Normally useful when you are trying to do a forall loop on a collection or dataset with multiple columns
    ForAll(ComboBox1.SelectedItems As TestCollection,Patch(Notifications,Defaults(Notifications),{Operator:TestCollection.Item}));

     

     

    Hope this helps !

    Cheers

     

  • IL_for Profile Picture
    7 on at

    Hi @Anonymous_Hippo

    Thank you for taking the time to read and reply to my query! Option 2 is what I needed. 
    I cant describe how thankful I am! 

    Keep up the good work. 
     

  • Anonymous_Hippo Profile Picture
    1,247 Super User 2024 Season 1 on at

    Cheers !

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard