Run code action for 'with' for file, project, or workspace

Important

Some of the functionality described in this release plan has not been released. Delivery timelines may change and projected functionality may not be released (see Microsoft policy). Learn more: What's new and planned

Enabled for Public preview General availability
Admins, makers, marketers, or analysts, automatically Oct 2024 Oct 2024

Business value

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.

Feature details

Previously, we 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.

Tell us what you think

Help us improve Dynamics 365 Business Central by discussing ideas, providing suggestions, and giving feedback. Use the forum at https://aka.ms/bcideas.