Codeunit 3904 Apply Retention Policy Impl.

System Application, System.DataAdministration

src/System Application/App/Retention Policy/src/Apply Retention Policy/ApplyRetentionPolicyImpl.Codeunit.al18 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 68, trigger

  1. 73callsApplyRetentionPolicy
  2. 80callsApplyRetentionPolicy

ApplyRetentionPolicy line 85

  1. 91callsCodeunit 3908 Retention Policy Log LogInfo
  2. 91callsLogCategory
  3. 91callsAppendStartedByUserMessage
  4. 109callsSafeApplyRetentionPolicy
  5. 115callsCodeunit 3908 Retention Policy Log LogInfo
  6. 115callsLogCategory
  7. 115callsAppendStartedByUserMessage
  8. 118runsCodeunit 3904 Apply Retention Policy Impl.

ApplyRetentionPolicy line 121

  1. 132callsIsSystemEnabledPolicy
  2. 133callsCodeunit 8703 Feature Telemetry LogUptake
  3. 134callsCanApplyRetentionPolicy
  4. 143callsCodeunit 3908 Retention Policy Log LogInfo
  5. 143callsLogCategory
  6. 143callsAppendStartedByUserMessage
  7. 146callsGetExpiredRecords
  8. 147callsDeleteExpiredRecords
  9. 149callsCodeunit 3912 Reten. Policy Telemetry Impl. SendTelemetryOnRecordsDeleted
  10. 151callsCodeunit 3908 Retention Policy Log LogInfo
  11. 151callsLogCategory
  12. 151callsAppendStartedByUserMessage
  13. 156callsCheckAndContinueWithRerun
  14. 158callsIsSystemEnabledPolicy
  15. 159callsCodeunit 8703 Feature Telemetry LogUsage

GetExpiredRecordCount line 162

  1. 170callsCodeunit 3908 Retention Policy Log LogInfo
  2. 170callsLogCategory
  3. 172callsGetExpiredRecords
  4. 177callsCodeunit 3908 Retention Policy Log LogInfo
  5. 177callsLogCategory
  6. 178callsCodeunit 3908 Retention Policy Log LogInfo
  7. 178callsLogCategory

SafeApplyRetentionPolicy line 182, local

  1. 190runsCodeunit 3904 Apply Retention Policy Impl.
  2. 191callsCodeunit 3908 Retention Policy Log LogError
  3. 191callsLogCategory

CanApplyRetentionPolicy line 197, local

  1. 202callsConfirmApplyRetentionPolicies
  2. 208callsTableExists
  3. 209callsDisableRetentionPolicySetup
  4. 217callsCodeunit 3905 Reten. Pol. Allowed Tables IsAllowedTable
  5. 218callsCodeunit 3908 Retention Policy Log LogError
  6. 218callsLogCategory

DeleteExpiredRecords line 223, local

  1. 239callsFillTempRetenPolDeletingParamTable
  2. 242callsCodeunit 3905 Reten. Pol. Allowed Tables GetRetenPolDeleting
  3. 246callsCodeunit 3910 Apply Retention Policy OnApplyRetentionPolicyIndirectPermissionRequired
  4. 248callsCodeunit 3908 Retention Policy Log LogError
  5. 248callsLogCategory
  6. 252callsCount
  7. 256callsCodeunit 3908 Retention Policy Log LogInfo
  8. 256callsLogCategory
  9. 257callsCodeunit 3912 Reten. Policy Telemetry Impl. SendTelemetryOnRecordsDeleted
  10. 260callsRaiseRecordLimitExceededEvent

CheckAndContinueWithRerun line 263, local

  1. 270callsApplyRetentionPolicy

FillTempRetenPolDeletingParamTable line 274, local

  1. 277callsVerifyIndirectDeletePermission
  2. 279callsMaxNumberOfRecordsToDelete
  3. 281callsMaxNumberOfRecordsToDelete

RaiseRecordLimitExceededEvent line 285, local

  1. 292callsCodeunit 3908 Retention Policy Log LogWarning
  2. 292callsLogCategory
  3. 293callsCodeunit 3910 Apply Retention Policy OnApplyRetentionPolicyRecordLimitExceeded
  4. 296callsMaxNumberOfRecordsToDelete

DisableRetentionPolicySetup line 308, local

  1. 312validatesTable 3901 Retention Policy Setup Enabled
  2. 313writesTable 3901 Retention Policy Setup Modify(true)
  3. 314callsCodeunit 3908 Retention Policy Log LogInfo
  4. 314callsLogCategory

ConfirmApplyRetentionPolicies line 317, local

  1. 332callsCodeunit 3908 Retention Policy Log LogError
  2. 332callsLogCategory

GetExpiredRecords line 337, local

  1. 347callsCodeunit 3905 Reten. Pol. Allowed Tables GetRetenPolFiltering
  2. 352callsCodeunit 3908 Retention Policy Log LogWarning
  3. 352callsLogCategory
  4. 360callsCodeunit 3917 Record Reference Initialize
  5. 362callsCodeunit 3908 Retention Policy Log LogWarning
  6. 362callsLogCategory

VerifyIndirectDeletePermission line 369, local

  1. 374callsCodeunit 152 User Permissions GetEffectivePermission

SetWhereOlderExpirationDateFilter line 378

  1. 384callsCodeunit 3908 Retention Policy Log LogError
  2. 384callsLogCategory

SetWhereNewerExpirationDateFilter line 396

  1. 402callsCodeunit 3908 Retention Policy Log LogError
  2. 402callsLogCategory

SetSingleDateExpirationDateFilter line 414

  1. 420callsCodeunit 3908 Retention Policy Log LogError
  2. 420callsLogCategory

TruncateTableRecords line 477

  1. 488callsCodeunit 3906 Reten. Pol. Allowed Tbl. Impl. IsTruncateAllowed
  2. 492callsCodeunit 3908 Retention Policy Log LogInfo
  3. 492callsLogCategory
  4. 493callsCodeunit 8703 Feature Telemetry LogUsage
  5. 498callsCodeunit 3908 Retention Policy Log LogInfo
  6. 498callsLogCategory
  7. 499callsCodeunit 8703 Feature Telemetry LogUsage
  8. 505callsCodeunit 152 User Permissions GetEffectivePermission
  9. 507callsCodeunit 3910 Apply Retention Policy OnTruncateRecordsIndirectPermissionRequired
  10. 509callsCodeunit 3908 Retention Policy Log LogError
  11. 509callsLogCategory
  12. 515callsCodeunit 3908 Retention Policy Log LogInfo
  13. 515callsLogCategory
  14. 517callsCodeunit 8703 Feature Telemetry LogUsage