---
id: object/report/4
type: object
title: Report 4 "Detail Trial Balance"
summary: Report 4 "Detail Trial Balance" in Base Application (Microsoft.Finance.GeneralLedger.Reports). 1 public procedures, 2 events. Present since at least BC23, still in BC30, changed in BC29.
tier: official
language: en
tags:
  - report
  - base application
versions:
  introduced: null
  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: d42a7552aed29ed83ad720c2bc6b6aeb7b4b7c1f66d538ff347a7e5f66b2dd07
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/GeneralLedger/Reports/DetailTrialBalance.Report.al
    title: src/Layers/W1/BaseApp/Finance/GeneralLedger/Reports/DetailTrialBalance.Report.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/bi
    title: Financial analytics
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/finance-reports
    title: Built-in finance reports in Business Central
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/reports/report-4
    title: Detail Trial Balance (report)
    date: null
    commit: null
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/bi
    - https://learn.microsoft.com/dynamics365/business-central/finance-reports
    - https://learn.microsoft.com/dynamics365/business-central/reports/report-4
  objects: []
  features: []
  topics:
    - topic/business-central/analytics-business-intelligence-and-repo/built-in-reports/finance
    - topic/business-central/business-functionality/finance/financial-analytics
    - topic/business-central/business-functionality/finance/financial-analytics/built-in-finance-reports
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9958
object_type: report
object_id: 4
name: Detail Trial Balance
namespace: Microsoft.Finance.GeneralLedger.Reports
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids:
  - docs/learn-smb-docs/business-central/bi.md
  - docs/learn-smb-docs/business-central/finance-reports.md
  - docs/learn-smb-docs/business-central/reports/report-4.md
counts:
  fields: 0
  procedures: 4
  events: 2
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Report 4 "Detail Trial Balance"

> Report 4 "Detail Trial Balance" in Base Application (Microsoft.Finance.GeneralLedger.Reports). 1 public procedures, 2 events. Present since at least BC23, still in BC30, changed in BC29.

Base Application · Microsoft.Finance.GeneralLedger.Reports · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/GeneralLedger/Reports/DetailTrialBalance.Report.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Detail Trial Balance |
| UsageCategory | ReportsAndAnalysis |
| ApplicationArea | Basic, Suite |

## Events published

- `OnAfterOnPreDataItemGLEntry(var GLEntry: Record "G/L Entry")` (integration): Integration event raised after G/L Entry data item preprocessing for customization of entry filtering or data modification. Allows extensions to modify G/L Entry record properties or apply additional filters before report generation.
- `OnAfterOnPreReport(var GLAccount: Record "G/L Account"; var ExcludeBalanceOnly: Boolean)` (integration): Integration event raised after report preprocessing for customization of G/L Account filtering or exclusion criteria. Allows extensions to modify account selection logic and balance exclusion rules before detail processing.

## Procedures

- `InitializeRequest(NewPrintOnlyOnePerPage: Boolean; NewExcludeBalanceOnly: Boolean; NewPrintClosingEntries: Boolean; NewPrintReversedEntries: Boolean; NewPrintOnlyCorrections: Boolean)`: Initializes report parameters for programmatic execution with detailed filtering and display options. Configures entry type filters, page break options, and transaction inclusion criteria for customized trial balance generation.

Plus 1 local procedures.

## Triggers

OnPreReport, OnPostReport

## Recent changes

- 2026-08-07 [#9958 [Main] -Detail Trial Balance - Running Balance Incorrect When "Include Closing Entries" Is Disabled](../../changes/bcapps/9958.md) (main, BC30, fix)

## Across versions

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

## Documented on Microsoft Learn

- [Financial analytics](https://learn.microsoft.com/dynamics365/business-central/bi)
- [Built-in finance reports in Business Central](https://learn.microsoft.com/dynamics365/business-central/finance-reports)
- [Detail Trial Balance (report)](https://learn.microsoft.com/dynamics365/business-central/reports/report-4)

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). 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: "report", object_name: "Detail Trial Balance")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
