topic hubAL Developmentofficial - Microsoftunreviewed - model text not yet checked

Rules, guidelines, and best practices

Rules, guidelines, and best practices for Business Central AL development. It covers deprecating objects, methods, symbols, and external business events, plus best practices for coding, testing, performance, security, telemetry, and Marketplace validation.

Path: Development > Rules, guidelines, and best practices · tier official · system development · narrative unreviewed (model text not yet checked)

Overview

This section collects the rules a developer follows when building and maintaining Business Central extensions. Two pages on its own deal with obsoleting: one on marking objects, methods, and symbols as obsolete in AL, and one on deprecating external business events.

The obsoleting guide explains the ObsoleteState, ObsoleteReason, and ObsoleteTag properties, the [Obsolete] attribute, preprocessor directives, and the analyzer rules that enforce them. The external business events page builds on this. It shows how to mark an event as obsolete pending first, then remove it in a later version, so external integrations can move to a replacement event. It mentions version 27.0.

The Best practices subtopic (16 pages) covers the wider development lifecycle. Topics include AL code conventions, restrictions to avoid, testing, performance, security, telemetry, and connectivity app requirements. Start there for guidance on getting an app through Marketplace validation. Start with the obsoleting pages when you need to retire code without breaking dependent extensions or integrations.

Key points

  • Obsolete AL objects, methods, and symbols with the ObsoleteState, ObsoleteReason, and ObsoleteTag properties or the [Obsolete] attribute.
  • Analyzer rules and preprocessor directives help enforce and manage obsolete code.
  • External business events are deprecated in two steps: mark them obsolete pending, then remove them in a future version.
  • The external business events deprecation page uses the Obsolete and ExternalBusinessEvent attributes, a DisplayName prefix, and event versioning. It refers to version 27.0.
  • Deprecating events this way lets external integrations move to replacement events.
  • The Best practices subtopic has 16 pages on AL code conventions, restrictions to avoid, testing, performance, security, and telemetry.
  • It also covers connectivity app requirements and how to publish apps that pass Marketplace validation.

Subtopics

More 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 18 Learn pages

Show 10 more