xRecord.renamePrimaryKey Method [AX 2012]
Renames the foreign keys in other tables according to the change of the primary key value that corresponds to this table.
Renames the foreign keys in other tables according to the change of the primary key value that corresponds to this table.