---
id: object/codeunit/423
type: object
title: Codeunit 423 "Change Log Management"
summary: Codeunit 423 "Change Log Management" in Base Application (System.Diagnostics). 12 public procedures, 13 events, 6 event subscribers. Present since at least BC23, still in BC30, changed in BC24-25.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "25"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: a9b0932fb8a26f97abfad3b53b725c6ca64cd485c80d3ff3fd27aae14223e9aa
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/ChangeLog/ChangeLogManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/System/ChangeLog/ChangeLogManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10927
object_type: codeunit
object_id: 423
name: Change Log Management
namespace: System.Diagnostics
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 33
  events: 13
  subscribers: 6
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 6
  calls: 3
  called_by: 2
  implements: 0
---

# Codeunit 423 "Change Log Management"

> Codeunit 423 "Change Log Management" in Base Application (System.Diagnostics). 12 public procedures, 13 events, 6 event subscribers. Present since at least BC23, still in BC30, changed in BC24-25.

Base Application · System.Diagnostics · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/ChangeLog/ChangeLogManagement.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| SingleInstance | true |
| Permissions | TableData "Change Log Setup" = r, TableData "Change Log Setup (Table)" = r, TableData "Change Log Setup (Field)" = r, TableData "Change Log Entry" = ri, TableData "Field Monitoring Setup" = r |

## Events published

- `OnAfterLogInsertion(var RecRef: RecordRef)` (integration)
- `OnAfterLogModification(var RecRef: RecordRef)` (integration)
- `OnAfterLogDeletion(var RecRef: RecordRef)` (integration)
- `OnInsertLogEntryOnBeforeChangeLogEntryValidateChangedRecordSystemId(var ChangeLogEntry: Record "Change Log Entry"; RecRef: RecordRef; FldRef: FieldRef)` (integration)
  - subscribers: [Codeunit 36951 "Initialization"](../codeunit/36951.md) OnInsertLogEntryOnBeforeChangeLogEntryValidateChangedRecordSystemId
- `OnBeforeLogDeletion(var RecRef: RecordRef)` (integration)
- `OnBeforeLogInsertion(var RecRef: RecordRef)` (integration)
- `OnBeforeLogModification(var RecRef: RecordRef)` (integration)
- `OnBeforeLogRename(var RecRef: RecordRef; var xRecRefParam: RecordRef)` (integration)
- `OnAfterIsAlwaysLoggedTable(TableID: Integer; var AlwaysLogTable: Boolean)` (integration)
  - subscribers: [Codeunit 106 "Ledg. Entry-Track Changes"](../codeunit/106.md) OnAfterIsAlwaysLoggedTable, [Codeunit 115 "G/L Entry-Edit"](../codeunit/115.md) OnAfterIsAlwaysLoggedTable, [Codeunit 36951 "Initialization"](../codeunit/36951.md) OnAfterIsAlwaysLoggedTable, [Codeunit 482 "Update Dim. Set Glbl. Dim. No."](../codeunit/482.md) OnAfterIsAlwaysLoggedTableHandler, [Codeunit 8390 "Financial Report Auditing"](../codeunit/8390.md) OnAfterIsAlwaysLoggedTable
- `OnLogModificationOnAfterCheckSecurityFiltering(var xRecRef: RecordRef)` (integration)
- `OnLogModificationOnBeforeCheckSecurityFiltering(var xRecRef: RecordRef)` (integration)
- `OnLogModificationOnBeforeRecRefLoopStart(var RecRef: RecordRef; var xRecRef: RecordRef)` (integration)
- `OnInsertLogEntryOnBeforeInitChangeLogEntry(var ChangeLogEntry: Record "Change Log Entry")` (integration)

## Event subscriptions

- OnBeforeInsertChangeLogSetup subscribes to Table "Change Log Setup (Table)" OnBeforeInsertEvent
- OnBeforeRenameChangeLogSetup subscribes to Table "Change Log Setup (Table)" OnBeforeRenameEvent
- OnAfterRenameChangeLogSetupField subscribes to Table "Change Log Setup (Field)" OnAfterRenameEvent
- OnAfterModifyChangeLogSetupField subscribes to Table "Change Log Setup (Field)" OnAfterModifyEvent
- OnAfterInsertChangeLogSetupField subscribes to Table "Change Log Setup (Field)" OnAfterInsertEvent
- OnAfterDeleteChangeLogSetupField subscribes to Table "Change Log Setup (Field)" OnAfterDeleteEvent

## Procedures

- `GetDatabaseTableTriggerSetup(TableID: Integer; var LogInsert: Boolean; var LogModify: Boolean; var LogDelete: Boolean; var LogRename: Boolean)`
- `IsLogActive(TableNumber: Integer; FieldNumber: Integer; TypeOfChange: Option Insertion,Modification,Deletion): Boolean`
- `IsAlwaysLoggedTable(TableID: Integer): Boolean`
- `InsertLogEntry(var FldRef: FieldRef; var xFldRef: FieldRef; var RecRef: RecordRef; TypeOfChange: Enum "Change Log Entry Type"; IsReadable: Boolean)`
- `LogInsertion(var RecRef: RecordRef)`
- `LogModification(var RecRef: RecordRef)`
- `LogRename(var RecRef: RecordRef; var xRecRefParam: RecordRef)`
- `LogDeletion(var RecRef: RecordRef)`
- `IsNormalField(FieldRef: FieldRef): Boolean`
- `HasValue(FldRef: FieldRef): Boolean`
- `InitChangeLog()`
- `EvaluateTextToFieldRef(InputText: Text; var FieldRef: FieldRef): Boolean`

Plus 2 local procedures.

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 53 "Translation Helper"](../codeunit/53.md) (8 calls: `OnAfterDeleteChangeLogSetupField → RestoreGlobalLanguage`, `OnAfterDeleteChangeLogSetupField → SetGlobalLanguageToDefault`, `OnAfterInsertChangeLogSetupField → RestoreGlobalLanguage`, …)
- [Codeunit 1367 "Monitor Sensitive Field Data"](../codeunit/1367.md) (4 calls: `GetDatabaseTableTriggerSetup → CheckIfTableIsMonitored`, `InsertLogEntry → HandleMonitorSensitiveFields`, `InsertLogEntry → IsIgnoredMonitorField`, …)
- [Codeunit 8711 "Telemetry"](../codeunit/8711.md) (4 calls: `OnAfterDeleteChangeLogSetupField → LogMessage`, `OnAfterInsertChangeLogSetupField → LogMessage`, `OnAfterModifyChangeLogSetupField → LogMessage`, …)

## Called by

- [Codeunit 49 "GlobalTriggerManagement"](../codeunit/49.md) (5 calls: `GetDatabaseTableTriggerSetup → GetDatabaseTableTriggerSetup`, `OnDatabaseDelete → LogDeletion`, `OnDatabaseInsert → LogInsertion`, …)
- [Table 405 "Change Log Entry"](../table/405.md) (1 call: `GetLocalValue → EvaluateTextToFieldRef`)

## Recent changes

- 2026-09-08 [#10927 [Change Log] Preserve SystemId for unloaded record modifications](../../changes/bcapps/10927.md) (main, BC30, fix)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Change Log Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
