Due to data discrepancy, I have to update the vendor IDs. So if I update the vendor id on vendTable from backend, do I need to update the reference tables too or just updating at VendTable would fulfill the problem?
Due to data discrepancy, I have to update the vendor IDs. So if I update the vendor id on vendTable from backend, do I need to update the reference tables too or just updating at VendTable would fulfill the problem?
Please let us know if it works and mark answer Verified, so it can help someone in future.
Thanks a lot Mohit . Really appreciate.
I have tested from front end using Rename functionality and its updating in other tables as well. You can use the script for one vendor and check if Vendor account is updated in other tables like VendTrans.
It might update correctly as the description of renamePrimaryKey method is 'Renames the foreign keys in other tables according to the change of the corresponding primary key'.
Hi Mohit,
Thanks for your reply. Do you have any idea if using the script in the link you shared will update all the reference tables?
Hi, You are referring to renaming a primary key. If its few Vendors then I would suggest to Use rename functionality in Record Info as mentioned in below article. Updating primary key from back-end can be risky and can cause Database Synchronization or Data corruption issues. Yes, I think you have to update vendor account in all tables where its used.
André Arnaud de Cal...
292,162
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156