×
Menu
Index

UpdateTableAndFieldIDs

 
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:
 
Code example:
    var
        NSPInterface: Codeunit "NSP Interface";
        FieldIDs: Dictionary of [IntegerInteger];
 
        //Table has new ID in AL, but the field IDs did not change
        NSPInterface.UpdateTableAndFieldIDs(9082855028); //Asset Check Header
 
        //Table has new ID in AL and some fields has a different ID, too
        Clear(FieldIDs);
        FieldIDs.Add(90819106); //Active
        FieldIDs.Add(90820107); //Implementer By PR Type
        NSPInterface.UpdateTableAndFieldIDs(9081355013, FieldIDs);
 
        //Call the same operation, but for some list/library setups only
        NSPInterface.UpdateTableAndFieldIDs(9081355013, FieldIDs, 'INCDOC_LIST|INCDOC_DOCS');