Show list of keys while working on AL code

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 Aug 17, 2023 Oct 2, 2023

Business value

IntelliSense offers great productivity features. On request, we have now added support for suggesting available keys when calling methods accepting key parameter. This improves speed and accuracy of coding and thus productivity.

Feature details

AL methods accepting keys, such as SetCurrentKey(), now have IntelliSense listing key parameters that are available. Until now it has only shown the list of fields.

Note that IntelliSense still suggests table fields, in case the developer wants to just perform sorting on specific fields. Keys are only suggested for the first parameter; subsequent parameters just suggest fields.

Example of IntelliSense showing available keys for SetCurrentKey() method

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.