Skip to main content

Notifications

Announcements

No record found.

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?

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 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.

  • Harshal Jain Profile Picture
    Harshal Jain 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
    Mohit Rampal 12,554 Super User 2024 Season 1 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
    Harshal Jain 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
    Mohit Rampal 12,554 Super User 2024 Season 1 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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans