---
title: "Page 3901 Retention Policy Setup Card, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/points/
object: https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/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/"
---

# Page 3901 Retention Policy Setup Card, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/points/

8 procedures and triggers with a step in src/System Application/App/Retention Policy/src/Retention Policy Setup/RetentionPolicySetupCard.Page.al, in source order, read from the text, not from a run.

## ApplyManually.OnAction

[Line 185](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L185), trigger.

- [189](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L189) calls [Codeunit 3910 Apply Retention Policy](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/) `ApplyRetentionPolicy`

## RestoreAllowedTables.OnAction

[Line 199](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L199), trigger.

- [203](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L203) calls [Codeunit 3905 Reten. Pol. Allowed Tables](https://jonas-paprotka.de/ref/codeunit/3905-reten-pol-allowed-tables/) `OnRefreshAllowedTables`

## TruncateAll.OnAction

[Line 214](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L214), trigger.

- [218](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L218) calls [Codeunit 3910 Apply Retention Policy](https://jonas-paprotka.de/ref/codeunit/3910-apply-retention-policy/) `TruncateTableRecords`

## OnOpenPage

[Line 237](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L237), trigger.

- [241](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L241) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogUptake`

## OnAfterGetCurrRecord

[Line 245](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L245), trigger.

- [255](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L255) calls [Codeunit 3903 Retention Policy Setup Impl.](https://jonas-paprotka.de/ref/codeunit/3903-retention-policy-setup-impl/) `TableExists`
- [259](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L259) calls `RecallPBTNotification`
- [260](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L260) calls `PageBackgroundTaskTimeout`
- [261](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L261) calls `ShowPBTNotification`
- [272](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L272) calls [Codeunit 3903 Retention Policy Setup Impl.](https://jonas-paprotka.de/ref/codeunit/3903-retention-policy-setup-impl/) `NotifyOnMissingReadPermission`

## OnPageBackgroundTaskCompleted

[Line 275](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L275), trigger.

- [291](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L291) calls `RecallPBTNotification`

## OnPageBackgroundTaskError

[Line 294](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L294), trigger.

- [296](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L296) calls `RecallPBTNotification`

## OnQueryClosePage

[Line 306](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L306), trigger.

- [321](https://jonas-paprotka.de/ref/page/3901-retention-policy-setup-card/source/#L321) validates [Table 3901 Retention Policy Setup](https://jonas-paprotka.de/ref/table/3901-retention-policy-setup/) `Enabled`

## Source

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

JOP-AL, 2026-11-20.
