topic hubAL Developmentofficial - Microsoftunreviewed - model text not yet checked

Extending AL objects

Extending AL objects covers how Business Central extensions add to existing objects without changing base code: table, page, report, enum and permission set extensions, application areas, and event types. It answers questions about extension syntax, keywords, and events.

Path: Development > Extensibility > Extending AL objects · tier official · system development · narrative unreviewed (model text not yet checked)

Overview

This section describes the AL object types and mechanisms used to extend the base application. Each extension object page covers one object type: table extensions add fields, keys and trigger code, page extensions add or move controls and actions, report extensions add columns, data items, request page elements and layouts, and permission set extensions add permissions to existing sets. Extensible enums let other extensions add values through enumextension objects.

Two pages cover wider mechanisms. Event types explain business, integration, global and trigger events and how to publish, raise and subscribe to them. Extending Application Areas explains how to add features that show or hide controls for different experience tiers.

Start with Event types to understand how extensions react to application behavior. Then read the page for the object you want to extend. The Extensible property appears in several pages, so check it when you want your own objects to be extended.

Key points

  • Event types include business events, integration events, global events, and database and page trigger events. The page explains how to publish, raise and subscribe to them.
  • Table extensions add fields, keys and trigger code without modifying the base table. The page also covers field tooltips and the Extensible property.
  • Page extensions use addfirst, addlast, addafter, addbefore, modify, movefirst, movelast, moveafter and movebefore to change layout and actions.
  • Report extensions add columns, data items, triggers, request page elements and multiple report layouts. The page is tied to 2022 release wave 1.
  • Extensible enums use the Extensible property and enumextension objects to add values. The page covers ordinal values, caption formatting, enum conversion and assignment compatibility.
  • Permission set extensions add permissions to existing sets. Permissions are assigned when the extension is installed and removed when it is uninstalled.
  • Application areas are extended by adding fields to the Application Area Setup table and subscribing to the OnGetExperienceAppArea and OnValidateApplicationAreas events.

Learn pages

Videos, posts and code changes

Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 7 Learn pages