Source AL, 328 lines
src/Layers/W1/BaseApp/OtherCapabilities/RetentionPolicy/RetenPolDocArchFltrng.Codeunit.allines 8 to 23 of 328, Copyright (c) Microsoft Corporation. MIT
codeunit 3994 "Reten. Pol. Doc. Arch. Fltrng." implements "Reten. Pol. Filtering"{ Access = Internal; var NoRecordsToDeleteLbl: Label 'There are no records to delete for table ID %1, %2.', Comment = '%1 = a id of a table (integer), %2 = the caption of the table.'; MinExpirationDateErr: Label 'The expiration date for table %1, %2 must be at least %3 days before the current date. Please update the retention policy.', Comment = '%1 = table number, %2 = table caption, %3 = integer'; OldestRecordYoungerThanExpirationLbl: Label 'The oldest record in table ID %1, %2 is younger than the earliest expiration date. There are no records to delete.', Comment = '%1 = a id of a table (integer), %2 = the caption of the table.'; RecordReferenceIndirectPermission: Interface "Record Reference"; procedure HasReadPermission(TableId: Integer): Boolean var RecordRef: RecordRef; begin RecordRef.Open(TableId); exit(RecordRef.ReadPermission())
All 328 lines
Events 1 in 29
| [IntegrationEvent] OnIsMaxArchivedVersionOnCaseElse(RecRef: RecordRef; var VersionFieldRef: FieldRef; var MaxVersionFieldRef: FieldRef; var MatchingTableFound: Boolean) | new in 25 |
Public procedures 5 in 29
| HasReadPermission(TableId: Integer): Boolean | new in 18 |
| Count(RecordRef: RecordRef): Integer | new in 18changed in 21 |
| ApplyRetentionPolicyAllRecordFilters(RetentionPolicySetup: Record "Retention Policy Setup"; var RecRef: RecordRef; var RetenPolFilteringParam: Record "Reten. Pol. Filtering Param" temporary): Boolean | new in 18 |
| ApplyRetentionPolicySubSetFilters(RetentionPolicySetup: Record "Retention Policy Setup"; var RecordRef: RecordRef; var RetenPolFilteringParam: Record "Reten. Pol. Filtering Param" temporary): Boolean | new in 18changed in 21 |
| MaxNumberOfRecordsToDelete(): Integer | new in 21 |
Changes 1 in 25
| List | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
|---|
| Procedures | | | | | 3 | | | | | | | | |
|---|
| Events | | | | | | | | | 1 | | | | |
|---|
| [IntegrationEvent] OnIsMaxArchivedVersionOnCaseElse(RecRef: RecordRef; var VersionFieldRef: FieldRef; var MaxVersionFieldRef: FieldRef; var MatchingTableFound: Boolean) | new in 25 |
| added |
All 4 changes in 18-29