Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets up the company information hierarchy for data import.
Syntax
private void setupCompanyInfoHierarchyForImport()
Run On
Called
Remarks
Previously, table rows in the CompanyInfo, OMInternalOrganization, and DirPartyTable tables were deleted and inserted for the current company during data import.
If the user tries to import the same dataset into different companies, only the first company will correctly receive the information from the dataset. This is because the import algorithm uses the record ID in the dataset to locate the 'new' record in the target table. It uses the record in the SysOld2NewRecId table, which always points to the record that represents the first company.
Therefore, instead of deleting the table rows, we use them to update the corresponding rows in the SysOld2NewRecId table. The algorithm that is used for the location of the new record will return the rows of the current company.