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

Notifications

Announcements

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,565 Moderator on at

    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

    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,565 Moderator on at

    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

    Thanks a lot Mohit . Really appreciate.

  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 836 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 346 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans