SysTranslationHelper.fetchNaturalKeyFieldsForMainTable Method [AX 2012]
Fetches the fields of the table that are related to each other when two table IDs are passed.
Syntax
private void fetchNaturalKeyFieldsForMainTable(TableId _mainTableId)
Run On
Called
Parameters
- _mainTableId
Type: TableId Extended Data Type
An instance of the tableId data type that represents the primary table.
Remarks
This function finds the natural key string fields for the specified table. First, it finds whether a natural key is specified in the table properties. Otherwise, it loops through all the table indices to find the key that does not allow for duplicated and enabled. Once the index is obtained, it loops through the fields in the index to get the string fields. If no string field is found, record ID is used as a natural key.