Dynamics 365 Business Central: AL Outline View

Dynamics 365 Business Central

Hi, Readers.
Today I would like to talk briefly about AL Outline view. This is a very handy feature during development and is personally recommended.

Working with the AL Language extension for Microsoft Dynamics 365 Business Central, you have access to the Outline view. The Outline view is a separate section in the lower left corner, right under the Explorer view.

The Outline view is enabled by default and shows the symbol tree of the currently active cursor.

It also allows you to filter as you type.

Double-clicking on any node makes your cursor jump to the selected definition or keyword.

The Outline view will also display any errors in your project for an easy review.

This can also be used in json files such as app.json, setting.json, etc.

Although not recommended, this also supports multiple objects in one al file.

Very handy😁.

You manage the look and feel of the Outline view by defining settings that are all enabled by default. To modify settings, press Ctrl+Shift+P, and then choose Preferences: Open Settings (UI) for workspace settings, or choose Preferences: Open User Settings for user settings. Under Extensions, and AL Language extension configuration you’ll find the settings that are available for the AL Language extension for the settings.json file.

  • outline.icons – Outline elements displayed with icons
  • outline.problems.enabled – Show errors and warnings on outline elements
  • outline.problems.badges – Badges displayed for errors and warnings
  • outline.problems.colors – Colors used for errors and warnings

But please note that there is a small problem here. Outline view does not support .dal files, which means that when you open the standard object from AL Explorer, Outline view will not display anything.

No symbols found in document ‘Customer List.dal’:

For standard objects, you can use the VS Code extension below.
AZ AL Dev Tools/AL Code Outline:

For example,
Run Focus on AL Outline View command:

AL Outline view:

Or open it from a symbol file:

Give it a try!!!😁

PS: You can find more about AL outline view in MS Learning (Docs).


Hope this will help.

Thanks for reading.



Copied title and URL