---
title: "Codeunit 3909 Retention Policy Log Impl., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/points/
object: https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-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 3909 Retention Policy Log Impl., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/points/

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

## OnRun

[Line 21](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L21), trigger.

- [26](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L26) calls `CreateLogEntry`

## LogError

[Line 29](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L29).

- [31](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L31) calls `CreateTempLogEntry`

## LogWarning

[Line 37](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L37).

- [39](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L39) calls `CreateTempLogEntry`

## LogInfo

[Line 42](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L42).

- [44](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L44) calls `CreateTempLogEntry`

## CreateTempLogEntry

[Line 47](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L47), local.

- [58](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L58) writes [Table 3905 Retention Policy Log Entry](https://jonas-paprotka.de/ref/table/3905-retention-policy-log-entry/) Insert
- [60](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L60) calls [Codeunit 3912 Reten. Policy Telemetry Impl.](https://jonas-paprotka.de/ref/codeunit/3912-reten-policy-telemetry-impl/) `SendLogEntryToTelemetry`
- [61](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L61) calls [Codeunit 150 System Initialization](https://jonas-paprotka.de/ref/codeunit/150-system-initialization/) `IsInProgress`
- [63](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L63) calls `InsertLogEntryInBackgroundSession`
- [64](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L64) calls [Codeunit 3912 Reten. Policy Telemetry Impl.](https://jonas-paprotka.de/ref/codeunit/3912-reten-policy-telemetry-impl/) `SendTelemetryOnInsertLogEntryInBackgroundSessionFailed`
- [64](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L64) calls [Codeunit 150 System Initialization](https://jonas-paprotka.de/ref/codeunit/150-system-initialization/) `IsInProgress`
- [66](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L66) calls [Codeunit 3912 Reten. Policy Telemetry Impl.](https://jonas-paprotka.de/ref/codeunit/3912-reten-policy-telemetry-impl/) `SendTelemetryOnInsertLogEntryInForegroundSessionStart`
- [66](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L66) calls [Codeunit 150 System Initialization](https://jonas-paprotka.de/ref/codeunit/150-system-initialization/) `IsInProgress`
- [67](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L67) calls `CreateLogEntry`
- [68](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L68) calls [Codeunit 3912 Reten. Policy Telemetry Impl.](https://jonas-paprotka.de/ref/codeunit/3912-reten-policy-telemetry-impl/) `SendTelemetryOnInsertLogEntryInForegroundSessionEnd`
- [68](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L68) calls [Codeunit 150 System Initialization](https://jonas-paprotka.de/ref/codeunit/150-system-initialization/) `IsInProgress`

## InsertLogEntryInBackgroundSession

[Line 73](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L73), local.

- [79](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L79) calls [Codeunit 3912 Reten. Policy Telemetry Impl.](https://jonas-paprotka.de/ref/codeunit/3912-reten-policy-telemetry-impl/) `SendTelemetryOnInsertLogEntryInBackgroundSessionStart`
- [79](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L79) calls [Codeunit 150 System Initialization](https://jonas-paprotka.de/ref/codeunit/150-system-initialization/) `IsInProgress`
- [83](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L83) calls [Codeunit 3912 Reten. Policy Telemetry Impl.](https://jonas-paprotka.de/ref/codeunit/3912-reten-policy-telemetry-impl/) `SendTelemetryOnInsertLogEntryInBackgroundSessionEnd`
- [83](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L83) calls [Codeunit 150 System Initialization](https://jonas-paprotka.de/ref/codeunit/150-system-initialization/) `IsInProgress`

## CreateLogEntry

[Line 86](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L86), local.

- [94](https://jonas-paprotka.de/ref/codeunit/3909-retention-policy-log-impl/source/#L94) writes [Table 3905 Retention Policy Log Entry](https://jonas-paprotka.de/ref/table/3905-retention-policy-log-entry/) Insert

## Source

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

JOP-AL, 2026-11-20.
