This post is part of the New Functionality In Microsoft Dynamics 365 Business Central 2025 Wave 1 series in which I am taking a look at the new functionality introduced in Microsoft Dynamics 365 Business Central 2025 Wave 1.
The 13th of the new functionality in the Development section is work with multiline strings in AL.
When developing AL, very long strings are sometimes used. Previously these had to be written in one line, making it hard to easily read content. In this release, Microsoft have added support for writing out strings spanning multiple lines, allowing developers to format the string content in a more human readable form. This especially helps when working with more structured string content, like JSON content.
Enabled for: Users, automatically
Public Preview: Apr 2025
General Availability: Apr 2025
Feature Details
You can now write a string in AL that spans multiple lines by prefixing it with @. This allows you to write the string in a more human readable form—for example, when the content is a structured format like JSON content.
When using this option, remember that any added white space (such as trying to indent lines) will become part of the string, and is therefore not recommended.
Below is an example of using this capability when assigning a JSON template structure to a text variable. Notice the use of @ at the beginning of the string to indicate a multiline string.
Click to show/hide the New Functionality In Microsoft Dynamics 365 Business Central 2025 Wave 1 Series Index
What should we write about next?
If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.