Forum Discussion
sumershanbhag
Oct 17, 2024Copper Contributor
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 a...
deanshepherd
Oct 17, 2024Brass Contributor
here is a method how patch all records in power apps
// FORALL + PATCH Method
ForAll(
CollectionOfChanges,
Patch(Datasource, DatasourceRecord, UpdateRecord)
)
Thanks
D
sumershanbhag
Oct 17, 2024Copper Contributor
Hi @deansheperd, I am already using this for my patch function. Still I am getting this error.
- deanshepherdOct 17, 2024Brass Contributorif you allready have cites in the sharepoint list and you just want to update that cities row then you will need to throw a lookup in there somthing like this
ForAll(CollectionOfChanges, Patch(Datasource, LookUp(Datasource, ID = ThisRecord.ID), ThisRecord))- sumershanbhagOct 18, 2024Copper ContributorUsing ForAll is giving me multiple SP list items. I tried by removing the ForAll and I got single item.