---
title: "Codeunit 3901 Retention Period Custom Impl., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/points/
object: https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/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 3901 Retention Period Custom Impl., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/points/

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

## RetentionPeriodDateFormula

[Line 17](https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/source/#L17), local.

- [22](https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/source/#L22) calls [Codeunit 3908 Retention Policy Log](https://jonas-paprotka.de/ref/codeunit/3908-retention-policy-log/) `LogError`
- [22](https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/source/#L22) calls `LogCategory`

## RetentionPeriodDateFormula

[Line 32](https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/source/#L32).

- [38](https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/source/#L38) calls [Codeunit 3908 Retention Policy Log](https://jonas-paprotka.de/ref/codeunit/3908-retention-policy-log/) `LogError`
- [38](https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/source/#L38) calls `LogCategory`

## CalculateExpirationDate

[Line 46](https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/source/#L46).

- [48](https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/source/#L48) calls `RetentionPeriodDateFormula`

## CalculateExpirationDate

[Line 51](https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/source/#L51).

- [53](https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/source/#L53) calls `RetentionPeriodDateFormula`

## CalculateExpirationDate

[Line 56](https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/source/#L56).

- [58](https://jonas-paprotka.de/ref/codeunit/3901-retention-period-custom-impl/source/#L58) calls `RetentionPeriodDateFormula`

## Source

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

JOP-AL, 2026-11-20.
