Hi All,
I have been trying to determine whether to use the "Errors" function, or the "Error" function in relation to which is most performance friendly.
My question is whether the "Errors" table in the first link, is locally cached, or if it is meta data for the dataverse table, and I will essentially be pulling the whole dataverse table again?
If it is locally cached, then I can only assume that I could call "IsEmpty(Errors(DataSourceTable1))" faster than our current method, and as a result reduce the user wait time by only carrying out a patch within the app for failures when there is an error, add successful patch info to Audit Logs via PowerAutomate, and not have to collect the data manually during the patch function via context variables.
For reference, the current method is below.
- Create context variable "audit log name" - (custom information, guid, etc)
- Create context variable "PatchError" - blank.
- Patch a new record to the audit log dataverse table, with a json formatted string named "$Request" of all the details we will be patching to our data source table - "DataSourceTable1". This will also contain some other details.
- This also initializes the "AuditRecord" context variable.
- Patch our actual data to "DataSourceTable1", which is a table in dataverse.
- This also initializes the "ctx_NewDataRecord" context variable as a record.
- IfError(ctx_NewDataRecord, .......)
- ...... Notify user
- .....Update "PatchError" context variable.
- .....Patch the "AuditRecord" context variable to the "Audit Log" dataverse table, using the collected data.
- Else patch successful

Report
All responses (
Answers (