Codeunit 3921 Retention Policy Logs Truncate
Source AL, 32 lines
src/System Application/App/Retention Policy/src/Apply Retention Policy/RetentionPolicyLogsTruncate.Codeunit.allines 8 to 23 of 32, Copyright (c) Microsoft Corporation. MIT
codeunit 3921 "Retention Policy Logs Truncate"{ Access = Internal; InherentEntitlements = X; InherentPermissions = X; Permissions = tabledata "Retention Policy Log Entry" = rd; [EventSubscriber(ObjectType::Codeunit, Codeunit::"Apply Retention Policy", OnTruncateRecordsIndirectPermissionRequired, '', true, true)] local procedure TruncateRecordsWithIndirectPermissionsOnTruncateRecordsIndirectPermissionRequired(var RecRef: RecordRef; var Handled: Boolean) begin // if someone else took it, exit if Handled then exit; // check if we can handle the table if not (RecRef.Number in [Database::"Retention Policy Log Entry"]) then