Skip to content

Commit

Permalink
optimized deletion tracking. (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertverbeek4PS authored Dec 4, 2024
2 parents e07a1e0 + fd7cd61 commit 0b3a4d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions businessCentral/app/src/Execution.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ codeunit 82569 "ADLSE Execution"
ADLSEDeletedRecord: Record "ADLSE Deleted Record";
DeletedTablesNottoSync: Record "Deleted Tables Not to Sync";
begin
if RecRef.Number = Database::"ADLSE Deleted Record" then
exit;

if DeletedTablesNottoSync.Get(RecRef.Number) then
exit;

Expand Down
5 changes: 2 additions & 3 deletions businessCentral/app/src/Util.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,8 @@ codeunit 82564 "ADLSE Util"
var
TableMetadata: Record "Table Metadata";
begin
TableMetadata.SetRange(ID, TableID);
TableMetadata.FindFirst();
exit(TableMetadata.DataPerCompany);
if TableMetadata.get(TableID)then
exit(TableMetadata.DataPerCompany);
end;

procedure CreateFakeRecordForDeletedAction(ADLSEDeletedRecord: Record "ADLSE Deleted Record"; var RecordRef: RecordRef)
Expand Down

0 comments on commit 0b3a4d4

Please sign in to comment.