Codeunit 3906 Reten. Pol. Allowed Tbl. Impl.

System Application, System.DataAdministration

Source AL, 468 lines

src/System Application/App/Retention Policy/src/Retention Policy Allowed Tables/RetenPolAllowedTblImpl.Codeunit.allines 12 to 27 of 468, Copyright (c) Microsoft Corporation. MIT

codeunit 3906 "Reten. Pol. Allowed Tbl. Impl."{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    Permissions = tabledata AllObj = r,                  tabledata AllObjWithCaption = r,                  tabledata Field = r,                  tabledata "Published Application" = r,                  tabledata "Retention Policy Allowed Table" = rimd;    EventSubscriberInstance = Manual;    var        TableDoesNotExistLbl: Label 'Cannot add Table %1 to the list of allowed tables because it does not exist.', Comment = '%1 = table number';        ModuleDoesNotExistLbl: Label 'Cannot add table %1 %2 to list of allowed tables because module %3 cannot be found.', Comment = '%1 = table number, %2 = table name, %3 = a guid';        WrongModuleOwnerLbl: Label 'Cannot add table %1 %2 to the list of allowed tables because the table is not owned by module %3.', Comment = '%1 = table number, %2 = table name, %3 = a guid';

All 468 lines

Events 2 in 29

[InternalEvent] OnVerifyAddtoAllowedList(TableId: Integer; var InsertAllowed: Boolean)17-29
[InternalEvent] OnVerifyModifyAllowedList(TableId: Integer; var ModifyAllowed: Boolean)17-29

Public procedures 20 in 29

AddToAllowedTables(TableId: Integer; DefaultDateFieldNo: Integer; CallerModuleInfo: ModuleInfo; MandatoryMinRetenDays: Integer; TableFilters: JsonArray): Boolean17-29
AddToAllowedTables(TableId: Integer; DefaultDateFieldNo: Integer; CallerModuleInfo: ModuleInfo; MandatoryMinRetenDays: Integer; RetenPolFiltering: Enum "Reten. Pol. Filtering"; RetenPolDeleting: Enum "Reten. Pol. Deleting"; TableFilters: JsonArray): Boolean17-29
RemoveFromAllowedTables(TableId: Integer): Boolean17-29
IsAllowedTable(TableId: Integer): Boolean17-29
GetAllowedTables(var AllowedList: List of [Integer])17-29
GetRetenPolFiltering(TableId: Integer): Enum "Reten. Pol. Filtering"17-29

All 20 procedures

Changes 2 in 28

List17181920212223242526272829
Procedures32
SetTruncateAllowed(TableId: Integer; TruncateAllowed: Boolean; CallerModuleInfo: ModuleInfo)new in 28
added
IsTruncateAllowed(TableId: Integer): Booleannew in 28
added

All 5 changes in 17-29