Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
This content is archived and is not being updated. For the latest documentation, go to What's new or changed in Business Central. For the latest release plans, go to Dynamics 365, Power Platform, and Cloud for Industry release plans.
Enabled for | Public preview | General availability |
---|---|---|
Admins, makers, marketers, or analysts, automatically | ![]() |
![]() |
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.
Additional resources
AL code actions (docs)