AL extension release · 15.1 · pre-releaseAL Developmentofficial - Microsoftderived - from the source, no model text

AL Language extension 15.1

AL Language extension 15.1 for Business Central 2025 release wave 1 (BC26): no upload of it left in the marketplace gallery; 3 changelog entries, 1 GitHub issue linked.

Changelog on the Visual Studio Marketplace · Business Central 2025 release wave 1 · BC26

Pass SecretText to control-addins

It is now possible to pass a value of type SecretText to control add-in procedures. This permits the integration of credentials with JavaScript-based authentication solutions.

New method to add SecretText values to JSON objects - WriteWithSecretsTo

A new method was added to the JsonObject type, which allows developers to add SecretText values. To use it, the AL developer first creates a JSON object with placeholder values for their secret values. Then they provide paths to the values in the JPath format as well as the values themselves. Finally, the method produces a new SecretText value with the credentials replaced.

procedure CreateSecretBody(ApiKey: SecretText, SecretSalt: SecretText) : SecretText
var
    JsonBody: JsonObject;
    Secrets: Dictionary of [Text, SecretText];
    Result: SecretText;
begin
    // Create a debuggable body
    JsonBody.Add('type', 'Some type');
    JsonBody.Add('api_key', 'placeholder');
    JsonBody.Add('salt', 'placeholder');

    // Prepare the replacements
    Secrets.Add('$.api_key', ApiKey);
    Secrets.Add('$.salt', SecretSalt);

    // Produce the secret body
    JsonBody.WriteWithSecretsTo(Secrets, Result);
    exit(Result);
end

GitHub Issues

  • #7993 Using HttpClient.UseServerCertificateValidation requires to use return value, but only in method usage.

Source: Visual Studio Marketplace, ms-dynamics-smb.al changelog, Microsoft’s text unchanged. Dates from the gallery’s upload records.