Business Central 2022 wave 2 (BC21) new features: Record tooltip has new primary key indicator (PKx – the order of the field in the key)

Dynamics 365 Business Central

Hi, Readers.
The preview environment for Dynamics 365 Business Central 2022 release wave 2 (BC21) is available. Learn more: Link.

I will continue to test and share some new features that I hope will be helpful.

Record tooltip has new primary key indicator:

Business value:

For some time, the Record data type tooltip has shown primary key fields with an asterisk indicator. Not having the order makes it impossible to figure out the exact primary key for tables—for example, when writing Record.GET statements. To provide contextual information, and avoid tedious steps on navigating to table definitions, the primary key members are now marked with a (PKx) in the Record tooltip list, where x is the order of the field in the key.

https://docs.microsoft.com/en-us/dynamics365-release-plan/2022wave2/smb/dynamics365-business-central/primary-key-indicator-record-tooltip

This new feature is similar to See the primary key for table fields feature.

When hovering on records in code, the tooltip now shows the primary key members with a (PKx) decorator after the type information, where x is a number indicating the order of the field in the key. This makes it easier to identify the table fields and order that makes up the primary key.

Let’s see two examples.

table 37 “Sales Line”:

table 81 “Gen. Journal Line”:

PS: This feature is only for developers using VS Code and does not show the order in the Page inspection.

Update from Business Central Launch Event (2022 release wave 2) 

END

Hope this will help.

Thanks for reading.

ZHU

コメント

Copied title and URL