Hello @CP153319 , sorry for the delay.
This blogpost gives a good example how to proceed:
https://www.matthewdevaney.com/patch-multiple-records-in-power-apps-10x-faster/
Basically, calling "Patch()" once works way faster than calling "Patch()" inside a "ForAll()", so you want to try and gives the "Patch()" the whole table of records you want to modify.
Assuming your collection doesn't have the same structure as your sharepoint datasource, and you want to create a hundred or so new records, the code below would be the closest to your solution :
Patch(
SharePointDataSource,
ForAll(collectionInspection,
Defaults(SharePointDataSource)
),
ShowColumns(collectionInspection,
"Column1",
"Column2",
...)
)
Here the "Patch()" :
- Edit the SharePointDataSource
- "ForAll()" return a table equivalent to collectionInspection in size, full of "Defaults()" so "Patch()" understand it must create new records
- "ShowColumns()" allows you to extract the columns from your collection which correspond to your SharePointDataSource
Hope this was helpful to you.