Marks whether the table, field, or key is or will become obsolete (deprecated).
- Table objects
- Table fields
- Table keys
The following table describes the property values.
|No||Not obsolete. This is the normal/default setting.|
|Pending||Will be obsolete in a future release. This setting has no effect on the current use of the table, field, or key in code.|
|Removed||Is obsolete. The element is not deleted from the database; however, references to the element in code are only allowed in upgrade codeunits. References from other objects will result in a runtime error.|
By coding against this property, you can use this property as a way to communicate through code to other developers which tables and fields will become obsolete over time and those which are already obsolete, enabling them to adjust their application code accordingly.
When developing using Dynamics NAV Development Environment (CSIDE), you do not get warnings or errors when you compile objects that reference table objects, fields, or keys that are marked as Pending or Removed. ObsoleteState property is only detected by the AL compiler, which will return warnings for references to elements marked as Pending and errors for references to elements marked as Removed.
Send feedback about: