Hello,
This subject has already been mentioned but I can't find the right answer :
https://powerusers.microsoft.com/t5/Building-Power-Apps/Duplicate-records-adding-from-collection-to-database/m-p/897661#M284903
https://powerusers.microsoft.com/t5/Building-Power-Apps/Bulk-patch-creating-duplicate-records/m-p/771407#M245798
I have an app that's supposed to add/remove text records in an Excel Sheet in OneDrive.
To do that in a batch way, I store my sheet in a collection then Patch that collection to the original data source.
Data source Sheet : "Fériés" with column "Dates"
Collection : "JoursNonTravailles" with column "Dates"
OnStart : ClearCollect(JoursNonTravailles;Fériés.Dates)
Then I do the changes. Then Patch :
Patch(Fériés;Fériés.Dates;JoursNonTravailles.Dates)
It then reuploads the entire collection to the sheet, no matter if the records already exist or not.
I have a feeling I would need to clear the whole sheet before patching my collection into it, but I don't know the right formula to do so.
Thanks a lot in advance for your help,
PowFlow