web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Do I need to update the reference tables too, while updating the vendor id ?

(0) ShareShare
ReportReport
Posted on by 162

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?

I have the same question (0)
  • Mohit Rampal Profile Picture
    12,563 Moderator on at
    RE: Do I need to update the reference tables too, while updating the vendor id ?

    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.

    subscription.packtpub.com/.../renaming-the-primary-key

  • Harshal Jain Profile Picture
    162 on at
    RE: Do I need to update the reference tables too, while updating the vendor id ?

    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?

  • Mohit Rampal Profile Picture
    12,563 Moderator on at
    RE: Do I need to update the reference tables too, while updating the vendor id ?

    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'.

  • Harshal Jain Profile Picture
    162 on at
    RE: Do I need to update the reference tables too, while updating the vendor id ?

    Thanks a lot Mohit . Really appreciate.

  • Mohit Rampal Profile Picture
    12,563 Moderator on at
    RE: Do I need to update the reference tables too, while updating the vendor id ?

    Please let us know if it works and mark answer Verified, so it can help someone in future.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,100

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 890 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 633 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans