Share via


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

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

Business value

Previously, you could use the code action to convert with statements to explicit records only for individual with statements. However, most apps have many with statements spread across the codebase, so converting code requires a lot of unnecessary manual work. With this release, you can run the code action to convert with usage on the whole document, the active project, and the entire workspace.

Feature details

Previously, we added generic support for running code actions on the active document, active project, or the complete workspace. Code actions adopt this support. These code actions convert uses of ApplicationArea or tooltips. In this release, you can run the code action that converts the usage of with on the entire document, the active project, and the complete workspace. This change makes it much more productive to convert the usage of with statements in existing code to explicit records.

Geographic areas

Visit the Explore Feature Geography report for Microsoft Azure areas where this feature is planned or available.

Language availability

Visit the Explore Feature Language report for information on this feature's availability.

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.

Additional resources

AL code actions (docs)