BCQuality rule · uiAL Developmentofficial - Microsoftderived - from the source, no model text

Serialize control add-in AL calls and keep payloads small

InvokeExtensibilityMethod crosses from a control add-in into the Business Central service.

Rule on GitHub · microsoft layer · ui · BC 20.. · tier official · derived

Description

InvokeExtensibilityMethod crosses from a control add-in into the Business Central service. Repeated calls that outpace AL execution fill the communication channel, trigger reduced-functionality warnings, and can be queued, throttled, or rejected; an oversized single payload can also be rejected immediately. The success and error callbacks exist so the add-in can bound this traffic.

Best Practice

Send byte-bounded chunks and invoke the next AL event only from the previous call’s completion callback. Handle the error callback and stop until the caller explicitly retries or discards the failed chunk. There is no universal safe threshold, so measure the serialized argument array, reserve transport headroom below the server’s ClientServicesMaxUploadSize, and reject an individual item that exceeds the configured budget.

See sample: control-addin-throttle-al-calls-and-payload-size.good.js.

Anti Pattern

Calling InvokeExtensibilityMethod on an interval without tracking completion, recursively creating intervals, or serializing an entire unbounded dataset into one call. These patterns can overwhelm the client-service channel or exceed the upload limit.

See sample: control-addin-throttle-al-calls-and-payload-size.bad.js.

Source

Control add-in performance best practices, InvokeExtensibilityMethod, and control add-in resiliency.

Changed by


From microsoft/BCQuality at a4593a1, MIT License, Copyright (c) 2026 Microsoft Corporation (license).