This post is part of the New Functionality In Microsoft Dynamics 365 Business Central 2024 Wave 2 series in which I am taking a look at the new functionality introduced in Microsoft Dynamics 365 Business Central 2024 Wave 2.
The 8th of the new functionality in the Development section is run code action for ‘with’ for file, project, or workspace.
The code action to convert ‘with’ statements to explicit records has only been only available for individual ‘with’ statements. However, most apps have many, many uses spread across the codebase, leading to a lot of unnecessary manual work to convert code. With this release, the code action to convert ‘with’ usage can now be run on the whole Document, the active Project as well as the complete Workspace level.
Enabled for: Admins, makers, marketers, or analysts, automatically
Public Preview: Oct 2024
General Availability: Oct 2024
Feature Details
Previously, Microsoft added generic support for running code actions on the active document, active project, or the complete workspace. This has been adopted by code actions, which are used for converting uses of ApplicationArea or tooltips. In this release, the code action to convert the usage of with can now be run on the entire document, the active project, as well as the complete workspace level. This makes it much more productive to convert the usage of with statements in existing code to use explicit records.