This function updates table and optionally field IDs in list/library setups and related mappings. The main use is during upgrade – to fix the NavSherpa data, if some related tables change.
Parameters:
"_OldTableID" - Specifies the old ID of the table.
"_NewTableID" - Specifies the new ID of the table.
(Optional) "_FieldIDs" - Specifies the list of fields that have different IDs.
(Optional) "_ListSetupFilter" - Specifies the list/library setup filter. If not blank, the changes will be applied to selected setups only.
Code example:
var
NSPInterface: Codeunit"NSP Interface";
FieldIDs: Dictionaryof [Integer, Integer];
//Table has new ID in AL, but the field IDs did not change