topic hubAL Developmentofficial - Microsoftreviewed - checked by Opus

Actions

Actions in Business Central AL pages: how to add, organize and promote actions, the action bar (split buttons, Home tab, legacy toggle), actionref syntax, common promoted groups, and prompt actions for Copilot. Answers questions on action design and placement rules.

Path: Development > Programming in the AL language > Pages and the user interface > Actions · tier official · system development · narrative reviewed (checked by Opus)

Overview

Actions are the commands users run from a page. This section explains how to define them in AL (action areas, groups, icons, keyboard shortcuts, the RunObject property) and how they are laid out in menus such as Actions, Creation, Navigation and Reports. It also covers Power Automate flow integration.

Promoted actions are the main theme. Pages cover the actionref syntax and split buttons, the legacy category syntax and migration between the two, the behavioral changes in 2022 release wave 2 (visibility inheritance, group merging, recursive group rendering), and design guidance: promote only frequently used actions, vary by page type, and use subgroups beyond 7 actions. A page on common promoted groups (Home/Process, Entity, Approve, Entry, and others) gives standard patterns.

Two release-specific pages complete the area: the modern action bar became the default in 2024 release wave 1 with a legacy option, and prompt actions in a floating action bar launch Copilot PromptDialog pages. Start with “Page Actions Overview” and “Adding actions to a page”, then read “Promoted actions” and “Organizing Promoted Actions”.

Key points

  • Actions can be placed in the Actions (processing), Creation, Navigation and Reports menus; the RunObject property, icons and keyboard shortcuts are set when adding them.
  • Promoted actions use actionref syntax with split button groups; the legacy PromotedCategory syntax is still supported and can be migrated gradually.
  • 2022 release wave 2 changed promoted action behavior: new actionref syntax, different visibility inheritance, recursive group rendering and group merging.
  • Guidance: promote only frequently used actions, tailor by page type, and use subgroups when there are more than 7 actions.
  • Common promoted groups include Home/Process, Entity, Approve, Entry, Incoming Document and Item Availability by.
  • In 2024 release wave 1 the modern action bar is default, with split buttons, a pinned Home tab and a toggle for the legacy action bar.
  • A page lists the pages updated with action bar improvements in 2022 release wave 2 (version 21.0).
  • Prompt actions with the Sparkle image launch Copilot PromptDialog pages from List, Card, Document, ListPart, StandardDialog, ListPlus and Worksheet pages (runtime 13 and 14 noted).

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 8 of 10 Learn pages

Show 2 more