Tag: TipsWithTC

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