Tag: businesscentral

Ternary operator ?: in AL

AL language now supports ternary (conditional) operator. The ternary operator? : known from other programming languages, streamlines conditional operations in code, enhances readability and reduces verbosity. The following examples show how the code  GetBooleanText() can be rewritten using the ternary operator to be less verbose and more succint. Without the ternary operator: With the ternary operator …

Continue reading

Include Resources in extensions

Good news! Resource files can now be included as part of an extension. This new option enables developers to package essential resources, such as images, configuration settings, and text files, directly with their extensions, ensuring that all necessary components are readily accessible and improving overall performance. To add resources to the extension, the following property …

Continue reading

AL now supports the Continue statement

From runtime version 15, it is possible to use the continue keyword in loops to continue to the next iteration. (Please make sure that your “AL Language extension for Microsoft Dynamics 365 Business Central” is version 15.0 or above) The continue statement allows skipping the remaining code in a loop’s current iteration and jumping directly into the …

Continue reading

Multiline strings: AL now has support for multiline string literals.

AL now support multiline string literals. It will enhance code readability and maintainability, especially when dealing with lengthy text content or complex string literals. Functionality is available with the AL Language Extension version 15.0 My first thought was, “Oh, we can use this to store the prompts for Copilot or OpenAI.” However, Dmitry suggested that …

Continue reading

Do you know you can navigate directly to a symbol of a file in VS Code?

All you need to do is press “Ctrl” + P and type the object name you want to navigate to. Then press @. It will list all the object’s fields, functions, and triggers. You can select the place you want to jump into. Regards,Tharanga Chandrasekara

How to Enable Outbound HTTP Requests in the Sandbox

Did you know that outgoing HTTP requests are automatically disabled when a Business Central sandbox is created to prevent unintended calls? To enable outgoing HTTP requests in a sandbox environment, follow these steps:1. Go to the Extension Management page.2. Select the extension making the HTTP request.3. Enable the “Allow HttpClient Requests” option in the extension’s …

Continue reading

Do you specify the 𝐑𝐮𝐧𝐓𝐫𝐢𝐠𝐠𝐞𝐫 parameter?

When you call the Insert, Modify, or Delete functions, it is important to specify the 𝐑𝐮𝐧𝐓𝐫𝐢𝐠𝐠𝐞𝐫 parameter. If you do not include this parameter, the compiler assumes you 𝒅𝒐 𝒏𝒐𝒕 𝒘𝒂𝒏𝒕 to run the trigger. 𝑨𝒍𝒘𝒂𝒚𝒔 𝒃𝒆 𝒄𝒍𝒆𝒂𝒓 𝒂𝒃𝒐𝒖𝒕 𝒚𝒐𝒖𝒓 𝒊𝒏𝒕𝒆𝒏𝒕𝒊𝒐𝒏𝒔. For example:If you do not want to run the trigger, use:Record.Modify(𝐟𝐚𝐥𝐬𝐞); Avoid using:Record.Modify(); If …

Continue reading

Automatically update AppSource apps with minor updates.

Before the 2023 release wave 2, Admin users could manually update specific apps through the App Management page in the Business Central admin centre or await a major update for the environment, which will automatically update AppSource applications.

What if you don’t want to do it manually or wait for a Major update? Let’s say you want to update the AppSource apps to the latest version with every minor update.

The VAT Date is not within the range of allowed VAT dates.

Did it suddenly start to throw the “VAT Date is not within your range of allowed posting dates” error? Nothing to worry about; it is due to a new VAT-related functionality added by Microsoft.

New operational limits on scheduled tasks.

The Microsoft Business Central version 23.3 completes the final segments of the new job queue tasks capabilities. With the new release, concurrency limits for scheduled tasks have been changed. Concurrency limit for scheduled tasks You can run as many scheduled tasks as possible if the environment has enough user accounts. However, you should not abuse …

Continue reading