---
title: "Codeunit 3910 Apply Retention Policy, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/points/
object: https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 3910 Apply Retention Policy, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/points/

9 procedures and triggers with a step in src/System Application/App/Retention Policy/src/Apply Retention Policy/ApplyRetentionPolicy.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 18](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L18), trigger.

- [20](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L20) runs [Codeunit 3904 Apply Retention Policy Impl.](https://jonas-paprotka.de/ref/codeunit/3904-apply-retention-policy-impl/)

## ApplyRetentionPolicy

[Line 27](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L27).

- [31](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L31) calls [Codeunit 3904 Apply Retention Policy Impl.](https://jonas-paprotka.de/ref/codeunit/3904-apply-retention-policy-impl/) `ApplyRetentionPolicy`

## ApplyRetentionPolicy

[Line 39](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L39).

- [43](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L43) calls [Codeunit 3904 Apply Retention Policy Impl.](https://jonas-paprotka.de/ref/codeunit/3904-apply-retention-policy-impl/) `ApplyRetentionPolicy`

## GetExpiredRecordCount

[Line 51](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L51).

- [56](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L56) calls [Codeunit 3904 Apply Retention Policy Impl.](https://jonas-paprotka.de/ref/codeunit/3904-apply-retention-policy-impl/) `GetExpiredRecordCount`

## GetExpiredRecordCount

[Line 65](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L65).

- [69](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L69) calls [Codeunit 3904 Apply Retention Policy Impl.](https://jonas-paprotka.de/ref/codeunit/3904-apply-retention-policy-impl/) `GetExpiredRecordCount`

## SetWhereOlderExpirationDateFilter

[Line 80](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L80).

- [84](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L84) calls [Codeunit 3904 Apply Retention Policy Impl.](https://jonas-paprotka.de/ref/codeunit/3904-apply-retention-policy-impl/) `SetWhereOlderExpirationDateFilter`

## SetWhereNewerExpirationDateFilter

[Line 95](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L95).

- [99](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L99) calls [Codeunit 3904 Apply Retention Policy Impl.](https://jonas-paprotka.de/ref/codeunit/3904-apply-retention-policy-impl/) `SetWhereNewerExpirationDateFilter`

## SetSingleDateExpirationDateFilter

[Line 110](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L110).

- [114](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L114) calls [Codeunit 3904 Apply Retention Policy Impl.](https://jonas-paprotka.de/ref/codeunit/3904-apply-retention-policy-impl/) `SetSingleDateExpirationDateFilter`

## TruncateTableRecords

[Line 121](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L121).

- [125](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/source/#L125) calls [Codeunit 3904 Apply Retention Policy Impl.](https://jonas-paprotka.de/ref/codeunit/3904-apply-retention-policy-impl/) `TruncateTableRecords`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
