Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Allow skipping of deletes to be synced to the data lake (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: Soumya Dutta <soudutta@microsoft.com>
  • Loading branch information
DuttaSoumya and Soumya Dutta authored Feb 24, 2022
1 parent 5134b59 commit 6ceb43c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion businessCentral/src/ADLSEExecution.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,15 @@ codeunit 82569 "ADLSE Execution"
ADLSETableLastTimestamp: Record "ADLSE Table Last Timestamp";
ADLSEDeletedRecord: Record "ADLSE Deleted Record";
begin
// exit function for tables that you do not wish to sync deletes for
// you should also consider not registering for deletes for the table in the function GetDatabaseTableTriggerSetup above.
// if RecRef.Number = Database::"G/L Entry" then
// exit;

// check if table is to be tracked.
if not ADLSETableLastTimestamp.ExistsUpdatedLastTimestamp(RecRef.Number) then
exit;

ADLSEDeletedRecord.TrackDeletedRecord(RecRef);
end;

}

0 comments on commit 6ceb43c

Please sign in to comment.