Developing reports
Developing reports in AL for Business Central covers report objects, datasets, layouts (Word, Excel, RDLC/RDL), request pages, extensions, substitution, obsoleting, telemetry, performance, troubleshooting and testing. It answers how to design, extend, format, expose, run and diagnose reports.
Path: Development > Programming in the AL language > Developing reports · tier official · system development · narrative unreviewed (model text not yet checked)
Overview
This section is the main reference for building reports in AL. It starts with the report object and the Reports overview, then moves to the dataset (data items and columns) and the layouts that present the data: Word, Excel and RDL. Request pages let users set options and filters before a report runs.
Subtopics go deeper. They cover formatting report data, report layouts, discoverability, triggers and events, and how users run, print and schedule reports. An AL language reference subtopic is also included.
For changing existing reports, there are pages on report extension objects, a report extension example, and report substitution. Operations pages cover telemetry, performance, troubleshooting, obsoleting reports and testing datasets with AL test codeunits. Start with the Reports overview and Report Design Overview. Then follow the walkthrough on designing a report from multiple tables.
Key points
- A report dataset is built from data items (tables) and columns (fields, variables, expressions), with table relations and optional captions.
- Layouts can be Excel, Word or RDL, and a report can have multiple layouts. The Report layouts subtopic has 22 pages on them.
- Report extension objects add columns, data items, triggers, request page elements and layouts to existing reports. The extensible property is involved.
- Report substitution uses the OnAfterSubstituteReport event in Codeunit 44 ReportManagement. From 2021 release wave 1, report extensions are an alternative.
- Request pages use RequestFilterFields and SaveValues to let users set filters and saved options.
- Obsoleting reports uses ObsoleteReason, ObsoleteTag and ObsoleteState. Layout-level obsolescence applies from 2025 release wave 1.
- Report telemetry tracks successful, failed and canceled runs, including dataset generation time, rendering time and SQL execution. It supports performance analysis and troubleshooting.
- Report datasets can be tested with AL test codeunits using the Library - Report Dataset codeunit and RunReportAndLoad, without server file system access.
Subtopics
- Formatting report data (3 pages)
- Report layouts (22 pages)
- Report discoverability (2 pages)
- Report triggers and events (7 pages)
- How users work with reports (3 pages)
- AL language reference (reports) (3 pages)
More Learn pages
- Obsoleting reports: Learn how to obsolete Business Central reports.
- Report dataset: The dataset determines the data extracted to print or display the information from the database.
- In the observatory: Table 18 “Customer”, Table 21 “Cust. Ledger Entry”
- Report Design Overview: Design a report by defining the dataset and designing the layout. Report object is composed of dataset, layout, request page, properties, triggers and code.
- Report Extension Example: Reports are used to print or display information from a database.
- Report extension object: The report extension object in AL for Business Central allows you to create an extension of an existing report.
- In the observatory: Report 111 “Customer - Top 10 List”
- Report Generation Telemetry: Learn about the report telemetry in Business Central.
- Report telemetry captures successful generation (RT0006), failures, cancellations (RT0007), and commits during cancellation (RT0011) with performance metrics.
- Total time minus server execution time equals rendering time. Rendering time is difference between generating dataset and applying layout.
- Limit: Business Central online cancels reports exceeding timeout threshold or max row limits; on-premises has no default limits but supports ReportTimeout and ReportMaxRows parameters.
- Dimensions include report ID, name, layout type (Rdlc, Word, Excel, Custom), document format, action (Print, Preview, Save, Schedule, Download), and reporting engine used.
- Theme layout and header/footer layout dimensions added in version 29.0 indicate layouts applied to report; values empty when not applied.
- Cancellation reasons include user request, timeout exceeded, maximum rows exceeded, or Word report rendering timeout.
- Limit: Event must log when report canceled with commit performed before cancellation, indicating potential data inconsistency if report not idempotent.
- Report object: The report object in AL for Business Central allows to create a new report.
- Report performance: Provides information for developers to help improve performance for Business Central reports.
- Reports overview: Use reports to display information from database to structure and summarize information and print documents, such as invoices.
- Substituting Reports in Business Central: Learn how to substitute one report for another in Business Central by handling the OnAfterSubstituteReport event, and how report extensions compare.
- In the observatory: Codeunit 44 “ReportManagement”
- Test Report Datasets with AL Test Codeunits: Test report datasets with AL test codeunits, load report output into memory, and verify values with the Library - Report Dataset codeunit.
- Troubleshooting reports: Learn about how to troubleshoot Business Central reports
- Using request pages with reports: Introducing how to work with request pages with Business Central reports.
- Walkthrough - Designing a report from multiple tables: This walkthrough shows you how to design a report from multiple tables.
- In the observatory: Table 18 “Customer”, Table 21 “Cust. Ledger Entry”, Table 36 “Sales Header”
Key facts from Microsoft Learn (CC BY 4.0), in our own words (D106); open the page for the full text.
Videos, posts and code changes
Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.
- #10270 [Quality Management] Repair and improve XML documentation of procedures (code change): “XML documentation for Quality Management procedures has been repaired and improved”
- #10404 Deliverable 638799: Requisitions in Base App - add layout to report + minor fixes (code change): “Word layout was added to the Spend Request Document report”
- #10489 MSlenejennum/647452/new header and footer layouts and report themes (code change): “New composite report parts management codeunit seeds 11 header/footer designs and 3 themes”
- #11137 Composite Report Parts: seed via a report extension instead of install/upgrade code (code change): “Report extension replaces SeedPart-based install/upgrade code for seeding”
- #11211 [Bug 649379] Composite layout stress-test fixes, part resolution source and status action captions (code change): “Fixes composite report layout defects: a new layout can no longer overwrite”
- #9428 637301 Report layout override lifecycle (code change): “Report layout overrides for extension-installed layouts now write Tenant Report Layout Override”
- #9433 636017 Move Item Price List and Res. Price List report action tooltip… (code change): “Report action tooltips for Item Price List and Res. Price List reports are moved”
- #9453 [Bug 642248] Header/Footer Theme Assignment: persist selected layout (missing Rec.Modify) (code change): “A data-persistence bug on the Header/Footer Theme Assignment page is fixed by adding a missing Rec.Modify() call”
- #9949 [Bug 645022] UI improvements for report themes and header/footers (composite layout) (code change): “Composite layout administration pages get UI improvements”
- #183 Add reporting review guidance and evaluation fixtures (code change): “Nine reporting rules and guidance articles have been added to the BCQuality”
- #230 Knowledge: report layouts and dataset contract, query join and grouping defaults (code change): “report layouts and dataset contract, query join and grouping defaults”
- BC Word Layout MCP 2.1.0: What changes when you print with a report theme? (community post): “Theme colours like accent1 are slots that follow the selected report theme”
- Composite Layouts in Business Central 29.0: Brand One Report End to End (community post): “In AL, the Subtype, HeaderFooterPart and ThemePart properties configure this”
- Docs: What’s new in BC 28 for developers (community post): “new tooling covers index usage management, a Word Add-in (preview) for report layouts”
- Quick Tip: Deep Dive into Report Objects and Layouts @BC TechDays 2025 (community post): “Reports combine three layers: data dataset, presentation layout, and user input”
- Business Central 29: What’s New in the Word Add-in? (community post): “reusable design components provide predefined formatting for addresses, field groups, amounts, signatures”
- Business Central 2025 wave 1 (BC26): Running objects in actions defaults to UI descriptors on target object (community post): “Reports now have a ToolTip property”
- Dynamics 365 Business Central: Save a document as a Word attachment (Attach as Word) – Customization (community post): “demonstrates two approaches to save Business Central documents as Word attachments instead of PDF files”
- Dynamics 365 Business Central Blog Series: Adding Barcodes (community post): “barcode generation in reports, barcode scanning through AL code, printing barcodes from production orders”
- Dynamics 365 Business Central: Set a PDF password for the report (Password protect the document using a user and admin passwords) – No control add-in and APIs (community post): “OnPreRendering trigger enables developers to add PDF password protection”
- Dynamics 365 Business Central: How to add Notes (System Parts) from FactBox to a report (community post): “retrieve Notes stored in the Record Link system table and display them in Business Central reports”
- Dynamics 365 Business Central: Adding comments to Factbox/Report (Displaying Comments in a FactBox/Report) (community post): “display sales comment lines directly as dataitems linked to the header in printed reports”
- Dynamics 365 Business Central Blog Series: Report Extension Examples & Use Cases (community post): “report extensions in Business Central covering the ReportExtension object”
- Dynamics 365 Business Central: How to run a Report in Preview Mode without the Request Page (Hide Request Page) (community post): “preview a Business Central report without showing the request page”
- Dynamics 365 Business Central: Don’t Forget the Layout! Essential Steps for Publishing Report Extensions (community post): “Report extensions let you extend existing reports by adding columns, data items, triggers”
- Business Central 2026 release wave 2 (BC29): Use cross-platform report layout paths (forward slashes or backslashes) (community post): “Report layout and analysis view paths to use either forward or backward slashes”
- What’s New: AL Language (2025 release wave 1) (video): “reports; strings; json; yaml; testing; Report Tooltips; Excel Layout”
- What’s New: Server and Database (2025 release wave 2) (video): “Server and Database analysis mode semantic search advanced tell me document reporting”
Business Central pages and reports
The pages, reports and queries this hub’s Learn pages name (ms.search.form, API reference), joined to the code by exact object id (data/index/docs-objects.json); a page shows the table it runs on.
- Page 21 “Customer Card” · on Table 18 “Customer” · via Report layouts
- Page 2650 “Email Printer Settings” · on Table 2650 “Email Printer Settings” · via How users work with reports
- Page 2750 “Universal Printer Settings” · on Table 2751 “Universal Printer Settings” · via How users work with reports
- Page 2752 “Add Universal Printers Wizard” · captioned “Add Universal Print Printers” · via How users work with reports
- Page 2753 “Universal Print Shares List” · captioned “Print Shares” · on Table 2752 “Universal Print Share Buffer” · via How users work with reports
- Page 2754 “Universal Printer Tray List” · captioned “Universal Printer Trays” · on Table 823 “Name/Value Buffer” · via How users work with reports
- Page 8900 “Administrator Main Role Center” · captioned “Administrator Role Center” · via How users work with reports
- Page 9650 “Custom Report Layouts” · captioned “Custom Report Layouts (Obsoleted)” · on Table 9650 “Custom Report Layout” · via Report layouts
- Page 9652 “Report Layout Selection” · captioned “Report Layout Selection (Obsoleted)” · on Table 9651 “Report Layout Selection” · via Report layouts
- Page 9660 “Report Layouts” · via Report layouts
- Page 9662 “Report Layout New Dialog” · captioned “Add New Layout for a Report” · via Report layouts
- Page 9666 “Report Theme and Header/Footer” · captioned “Manage themes and header-footer layouts” · via Report layouts
- Page 9882 “Report Res. Govern. Settings” · captioned “Report Limits and Settings” · via Formatting report data
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.
What Learn documents here 8 of 54 Learn pages
- learn(Obsolete) Create and Modify Custom Report Layouts2026-11-11
- learn(Obsolete) Import and Export Custom Report Layouts2026-11-11
- learn(Obsolete) Set the Layout Used by a Report2026-11-11
- learn(Obsolete) Update Custom Report Layouts2026-11-11
- learnAdd pages and reports to Tell me2025-05-15
- learnAdding barcodes to reports2021-04-06
- learnAvailable Fonts in Business Central2026-11-12
- learnBarcode Fonts with Business Central Online2021-10-29
Show 32 more
- learnCreate Excel Report Layouts in Business Central2026-11-09
- learnCreating a Word layout report2026-12-04
- learnCreating an Excel layout report2025-03-13
- learnCreating an RDL layout report2025-01-08
- learnDefine Document Layouts for Customers and Vendors2026-11-10
- learnDefining multiple report layouts2024-01-20
- learnDesign Word Layouts with the Business Central Add-in2026-11-09
- learnDeveloping a Custom Report Render2026-03-03
- learnFormatting field values in report datasets2023-12-01
- learnFormatting the data in a field2026-07-03
- learnGet started creating report layouts2026-11-12
- learnLocalizing the report data formatting and caption strings2023-01-04
- learnManage Saved Settings for Reports and Batch Jobs2026-11-11
- learnMap Data Fields in Word Layouts2026-11-09
- learnObsoleting reports2025-03-13
- learnOnAfterDocumentPrintReady Event2021-04-01
- learnOnAfterDocumentReady Event2023-03-13
- learnOnAfterIntermediateDocumentReady Event2023-03-10
- learnOnAfterSetupPrinters Event2021-04-01
- learnOnCustomDocumentMergerEx event2023-12-20
- learnOnGetFilename Event2025-06-11
- learnReport and document layouts overview2026-09-09
- learnReport data type2026-10-01
- learnReport dataset2024-01-18
- learnReport Design Overview2023-12-08
- learnReport discoverability2024-03-11
- learnReport Extension Example2021-04-01
- learnReport extension object2024-11-11
- learnReport Generation Telemetry2026-09-22
- learnReport object2024-09-16
- learnReport performance2024-01-18
- learnReport Property Reference in AL2026-10-01