---
id: object/codeunit/8390
type: object
title: Codeunit 8390 "Financial Report Auditing"
summary: Codeunit 8390 "Financial Report Auditing" in Base Application (Microsoft.Finance.FinancialReports). 3 public procedures, 3 event subscribers. Introduced in BC28, still in BC30, changed in BC29.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "28"
  last_changed: "29"
  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: 410594590ecf8a9528188066310a8578d97ac214be8980705f37f12247867e19
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/FinancialReports/FinancialReportAuditing.Codeunit.al
    title: src/Layers/W1/BaseApp/Finance/FinancialReports/FinancialReportAuditing.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/10252
    - change/bcapps/9142
object_type: codeunit
object_id: 8390
name: Financial Report Auditing
namespace: Microsoft.Finance.FinancialReports
app: Base Application
extends: null
first_version: "28"
last_version: "30"
present_in:
  - "28"
  - "29"
  - "30"
changed_in:
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 8
  events: 0
  subscribers: 3
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 4
  implements: 0
---

# Codeunit 8390 "Financial Report Auditing"

> Codeunit 8390 "Financial Report Auditing" in Base Application (Microsoft.Finance.FinancialReports). 3 public procedures, 3 event subscribers. Introduced in BC28, still in BC30, changed in BC29.

Base Application · Microsoft.Finance.FinancialReports · BC28-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/FinancialReports/FinancialReportAuditing.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| Permissions | tabledata "Financial Report Audit Log" = ri |

## Event subscriptions

- FinancialReportAuditLogOnBeforeInsert subscribes to Table "Financial Report Audit Log" OnBeforeInsertEvent
- OnGetPerCompanyUpgradeTags subscribes to Codeunit "Upgrade Tag" OnGetPerCompanyUpgradeTags
- OnAfterIsAlwaysLoggedTable subscribes to Codeunit "Change Log Management" OnAfterIsAlwaysLoggedTable

## Procedures

- `LogReportUsage(ReportName: Code[10]; Format: Enum "Financial Report Format")`
- `LogReportUsage(ReportName: Code[10]; Format: Enum "Financial Report Format"; Scheduled: Boolean)`
- `AddRetentionPolicy()`

Plus 2 local procedures.

## 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 9999 "Upgrade Tag"](../codeunit/9999.md) (2 calls: `AddRetentionPolicy → HasUpgradeTag`, `AddRetentionPolicy → SetUpgradeTag`)
- [Codeunit 3006 "DotNet_DateTimeOffset"](../codeunit/3006.md) (1 call: `FinancialReportAuditLogOnBeforeInsert → ConvertToUtcDateTime`)
- [Codeunit 3902 "Retention Policy Setup"](../codeunit/3902.md) (1 call: `AddRetentionPolicy → FindOrCreateRetentionPeriod`)
- [Codeunit 3905 "Reten. Pol. Allowed Tables"](../codeunit/3905.md) (1 call: `AddRetentionPolicy → AddAllowedTable`)

## Called by

- [Codeunit 104000 "Upgrade - BaseApp"](../codeunit/104000.md) (1 call: `UpgradeFinancialReportAuditLogAddRetentionPolicy → AddRetentionPolicy`)
- [Page 490 "Acc. Schedule Overview"](../page/490.md) (1 call: `OnOpenPage → LogReportUsage`)
- [Report 25 "Account Schedule"](../report/25.md) (1 call: `OnPreReport → LogReportUsage`)
- [Report 29 "Export Acc. Sched. to Excel"](../report/29.md) (1 call: `OnPostReport → LogReportUsage`)

## Recent changes

- 2026-08-30 [#10252 Adjust audit log tables](../../changes/bcapps/10252.md) (main, BC30, fix)
- 2026-07-09 [#9142 [638695] Add Financial Report tables to always-logged list](../../changes/bcapps/9142.md) (main, BC30, feature)

## Across versions

- Present in: BC28-30
- Changed (declaration) in: BC29

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: "Financial Report Auditing")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
