Using partial records in Business Central (SetLoadFields)

Business Central allows us to set or select the fields that will be initially loaded when the record is retrieved from its data source, improving the performance of objects such as OData pages and reports, and particularly beneficial when using table extensions in the application.

Source : Ivan Singleton
Read more…

Dynamics 365 Business Central: breaking change when adding a return value to a procedure

I’ve received a request from a partner asking why adding a return value to a procedure in a Dynamics 365 Business Central extension that previously had no return value is considered a breaking change during AppSource validation.

Source : Stefano Demiliani
Read more…

Dynamics 365 Business Central 2022 Wave 2: introducing the new DataTransfer data type

I’ve talked some days ago about some UI improvements in the Dynamics 365 Business Central 2022 Wave 2 release (version 21). You can read the details here. There’s another quite hidden feature that I love a lot in this new release (not yet documented) and it’s related to the availability of a new construct for writing faster upgrade code.

Source : Stefano Demiliani
Read more…

Benchmarking AL code

In this blog post we attempt to write a simple micro-benchmark to test execution time of a trivial scenario. Throughout the post the benchmarking code will evolve as the common mistakes are presented, explained, and solved. Finally, a relatively good solution will be presented for public usage together with advice on how to run these benchmarks.

Source : BC Internals
Read more…

VS Code: Keep your code clean by running extension commands on save

There are many VS Code Extensions that make our lives as developers easier. If I think of the AL programming language, for example, they help us with the following things: Replace missing brackets Correct the casing of words Sort fields in tables …and the list could go on forever.

Source : BUSINESS CENTRAL DEEP DIVE
Read more…