Examples
Worked examples for extending the Business Central base application. They cover pages on buffer tables, exchange rate adjustments, templates, document sharing, email, error messages, invoice posting, item charges, price calculation, Shopify, Data Archive and e-documents. Use them to find which events, interfaces and codeunits to extend for a given area.
Path: Development > Extensibility > Extending the base application > Examples · tier official · system development · narrative unreviewed (model text not yet checked)
Overview
This section is a set of standalone how-to pages. Each one shows how to extend one area of the base application. They use table and page extensions, event subscribers, interfaces and enums. The pages don’t depend on each other, so pick the one that matches your scenario.
Some pages describe extension points through interfaces and enums. Examples are Invoice Posting for G/L entry aggregation, the ErrorMessageFix interface for actionable errors, and the price calculation setup. Others rely on events. Examples are OnAfterCalcLine for pages that used the Date virtual table, and the Item Charge Assignment codeunits for new distribution methods. Several pages target larger frameworks: email (scenarios, connectors, view policies), document sharing with OneDrive, Shopify, and e-documents for localization and ISV apps.
Start with the page for the area you want to change. Check the version notes where they exist, such as 2023 release wave 2 for currency exchange rate adjustments and 2025 release wave 1 for e-documents.
Key points
- Pages formerly based on the Date virtual table now use buffer tables. Extend the buffer table and subscribe to OnAfterCalcLine.
- Currency exchange rate adjustment has new objects since 2023 release wave 2. They add preview entries, detailed history and support for regional compliance.
- Customer, vendor and item templates can be extended by adding fields and creating new templates for the primary tables.
- Document Sharing and OneDrive for Business use the Document Sharing module and the Document Service Management codeunit. You can plug in OneDrive or a custom document service.
- Email can be extended with custom scenarios, address book lookups, view policies and connectors. The Microsoft 365 and Current User connectors are named.
- Actionable error messages use the ErrorMessageManagement codeunit and the ErrorMessageFix interface. They support drill-down and bulk actions on the Error Messages page.
- G/L entry aggregation when posting invoices is customized by implementing the Invoice Posting interface for sales, purchase and service documents.
- Item charge distribution methods (equally, by amount, by weight) are extended through events in the Item Charge Assignment codeunits.
Learn pages
- Extend Pages Based on the Date Virtual Table: Learn how to extend Business Central pages that previously used the Date virtual table, by extending the buffer table and subscribing to the OnAfterCalcLine event.
- In the observatory: Page 416 “G/L Account Balance Lines”, Table 926 “G/L Acc. Balance Buffer”
- Extending currency exchange rate adjustments: Explore opportunities to add capabilities to exchange rate adjustments.
- In the observatory: Report 596 “Exch. Rate Adjustment”
- Extending Customer, Vendor, and Item Templates: How you extend templates in Dynamics 365 Business Central.
- In the observatory: Codeunit 1381 “Customer Templ. Mgt.”, Page 1382 “Customer Templ. Card”, Table 1381 “Customer Templ.”
- Extending Document Sharing and OneDrive for Business: Learn how the document sharing capability is used with OneDrive for Business, and how you can extend it.
- Extending Email: Learn how to extend the email capabilities in Business Central.
- Extending Error Messages with Recommendations: Extend Business Central error messages with recommended actions by using the error-management framework, fix interfaces, enums, and action handlers.
- Extending G/L entry aggregations when posting invoices: Explore an example of how to extend the posting process for sales, purchase, and service documents.
- Extending Item Charges Distribution Methods: How you extend item charges in Dynamics 365 Business Central.
- Extending Price Calculations: How you extend the price calculations in Dynamics 365 Business Central.
- Extending Shopify: Discover extensibility options for the Shopify Connector, including event subscriptions, API interactions, and co-development contributions.
- Extending the Data Archive extension: Overview and examples of how to enable your app to archive data.
- In the observatory: Codeunit 600 “Data Archive”
- Extending the e-documents functionality: Learn how to extend e-documents functionality with specific requirements.
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 4500 “Current User Email Account” · on Table 4508 “Email - Outlook Account”
- Page 4503 “Microsoft 365 Email Account” · on Table 4508 “Email - Outlook Account”
- Page 4504 “Microsoft 365 Email Wizard” · captioned “Set up Microsoft 365 email account” · on Table 4508 “Email - Outlook Account”
- Page 4511 “SMTP Account Wizard” · captioned “Set up SMTP Account” · on Table 4511 “SMTP Account”
- Page 4512 “SMTP Account” · on Table 4511 “SMTP Account”
- Page 6103 “E-Document Services” · on Table 6103 “E-Document Service”
- Page 6133 “E-Document Service” · on Table 6103 “E-Document Service”
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.
What Learn documents here 8 of 12 Learn pages
- learnExtend Pages Based on the Date Virtual Table2026-08-24
- learnExtending currency exchange rate adjustments2023-12-28
- learnExtending Customer, Vendor, and Item Templates2021-10-14
- learnExtending Document Sharing and OneDrive for Business2021-10-01
- learnExtending Email2022-05-19
- learnExtending Error Messages with Recommendations2026-11-30
- learnExtending G/L entry aggregations when posting invoices2024-01-03
- learnExtending Item Charges Distribution Methods2021-04-01