Forum Discussion

sumershanbhag's avatar
sumershanbhag
Copper Contributor
Oct 17, 2024

Patch Multiple Items in SP list online

Hello everyone,
I am trying to patch multiple values in a single SP online list. I have a Add New Button in Form where it stores a collection of 4 column which I had set up in a data table. When I am trying to patch this in SP through Form (Power Apps Customized), it gives me multiple items in SP list. 

Suppose I am trying to add 2 cities in data table and when I am patching this cities it gives me 2 items in SP list.

Please help me with this error. Thanks

5 Replies

    • deanshepherd's avatar
      deanshepherd
      Brass Contributor

      here is a method how patch all records in power apps

      // FORALL + PATCH Method
      ForAll(
      CollectionOfChanges,
      Patch(Datasource, DatasourceRecord, UpdateRecord)
      )

      Thanks
      D

      • sumershanbhag's avatar
        sumershanbhag
        Copper Contributor
        Hi @deansheperd, I am already using this for my patch function. Still I am getting this error.

Resources