There are a few threads on this but none quite fit what I'm trying to do.
First off this needs to be carried out from within PowerApps as it needs to be a simple end-user one-click operation.
Problem.
We have a Dataverse table with 150k+ rows of data.
Periodically some records need to be updated, this can be anything from a few hundred to a few thousand rows at a time.
The problem is that the records to be updated can be anywhere within the 150k rows.
For data sets up to 2000 this works fine (although I'd prefer to keep the limit at 500 for performance).
ForAll(
RevisionsTable As Temp, //use temp to avoid conflicts of naming
UpdateIf(
DataverseTable,
ID = Temp.ID,
{
FieldToUpdate1: Temp.FieldToUpdate1,
FieldToUpdate2: Temp.FieldToUpdate2
}
)
)
The revisions table is an Excel file saved in a SharePoint folder which other users add to as items need updating or via bulk upload from supplied spreadsheet from a third party.
Is there a way to poll through all 150K Dataverse table rows and where there is a matching ID in the revisions table update it and then move on to find the next item to update.
I'm thinking that including Search() as part of the ForAll() loop will do the trick and be relatively fast but haven't been able to figure out the correct point to use it.
Thanks in advance.