The TableRelation property

The Microsoft Dynamics NAV Server service uses the TableRelation property of fields in tables to maintain data integrity.

There are plenty of fields in Microsoft Dynamics NAV tables that are related to other tables. In a sales invoice, for instance, the Sell-to Customer No. field is related to the Customer table:

The relationship is stated in the TableRelation property of the field. Sell-to Customer No. is related to the primary key field of the Customer table.

A relation is established for three important purposes, and two of them are related to data integrity:

  • To establish data integrity: If TableRelation is defined, ...

Get Implementing Microsoft Dynamics 365 Business Central On-Premise - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.