---
title: "Codeunit 138709 Retention Policy Test Library, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/points/
object: https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/
app: "System Application Test Library"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/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 138709 Retention Policy Test Library, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/points/

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

## MaxNumberOfRecordsToDelete

[Line 37](https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/source/#L37).

- [41](https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/source/#L41) calls [Codeunit 3904 Apply Retention Policy Impl.](https://jonas-paprotka.de/ref/codeunit/3904-apply-retention-policy-impl/) `MaxNumberOfRecordsToDelete`

## MaxNumberOfRecordsToDeleteBuffer

[Line 48](https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/source/#L48).

- [52](https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/source/#L52) calls [Codeunit 3904 Apply Retention Policy Impl.](https://jonas-paprotka.de/ref/codeunit/3904-apply-retention-policy-impl/) `NumberOfRecordsToDeleteBuffer`

## RaiseOnRefreshAllowedTables

[Line 123](https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/source/#L123).

- [127](https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/source/#L127) calls [Codeunit 3905 Reten. Pol. Allowed Tables](https://jonas-paprotka.de/ref/codeunit/3905-reten-pol-allowed-tables/) `OnRefreshAllowedTables`

## RunApplyRetentionPolicyImpl

[Line 135](https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/source/#L135).

- [137](https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/source/#L137) runs [Codeunit 3904 Apply Retention Policy Impl.](https://jonas-paprotka.de/ref/codeunit/3904-apply-retention-policy-impl/)

## SetTruncateAllowed

[Line 167](https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/source/#L167).

- [171](https://jonas-paprotka.de/ref/codeunit/138709-retention-policy-test-library/source/#L171) calls [Codeunit 3905 Reten. Pol. Allowed Tables](https://jonas-paprotka.de/ref/codeunit/3905-reten-pol-allowed-tables/) `SetTruncateAllowed`

## Source

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

JOP-AL, 2026-11-20.
