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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

What exactly happens if I change customer data in the DB rather than use the CRM

(0) ShareShare
ReportReport
Posted on by 3,755

I have heard many people say not to do this because it is against best practices and MS recommendations but I am not saying that I want to make changes to system tables but customer names, dates etc.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Hosk Profile Picture
    on at

    This is unsupported and can lead to problems.

    the reasons for not changing the database directly is the CRM SDK will often trigger other events when you updates fields, plugins, javascript, workflows.  it will trigger Microsoft events and your own customizations.

    IF you do it directly on the DB this won't happen.  This could cause the database to get in an odd state that could be very tricky to fix.

    you can change values on fields to incorrect values because you have bypassed CRM validation.

    You can also update the wrong fields, in correct values and all sorts of dangerous things by modifying the database directly.

    The final reason it's not supported is because Microsoft will offer limited support to fixing your CRM Database because you made an unsupported change.

    So my advice is don't do it, there are plenty of ways to modify the data in a supported way

  • Hussman Profile Picture
    3,755 on at

    Ben, I have been given that exact reason by many other devs but I think if there is no custom plugins/workflows that cause an event to trigger on the change of a field, then it is ok. Like changing someones name from Donnal to Donald.

    I was wondering if there are any other reasons? If I changed a value in my DB - then how would Microsoft know anyway?

  • matthew.mickas Profile Picture
    505 on at

    There are a number of internal processes that may be triggered by updating the data in the database.  Not to say that changing a name will trigger this, but there is always a chance that an "update" to a record will trigger an internal process for auditing or maybe some other kind of action.  Basically it's not supported because Microsoft can't control any changes you make to the DB or it's data, therefore won't be willing to investigate issues that may arise in the future.  If there is another way to update these records, through the SDK or custom process this will guarantee Microsoft support.

  • Suggested answer
    Hosk Profile Picture
    on at

    There are lots of Microsoft/CRM processes/plugins and other things triggered.

    Behind the scenes there are lots of  processes altering lists, security and other internal database tables which CRM uses.

    Personally the risk isn't worth it because if it goes wrong (and you might not be able to tell straight away), Microsoft won't help you resolve the problem.

    You might be in a situation where you have to create a new CRM organisation and export the data to it or lose lots of data.

    Why do you need to modify the SQL tables directly anyway?

  • Suggested answer
    Community Member Profile Picture
    on at

    So when you update a Contact "FirstName" field in the DB from Donnal to Donald, will the platform also update the "FullName" field to reflect the new first and last names? I am pretty sure it won't. So you would have to remember to do that too.

    Just one simple example of a potential problem, building on your (deceptively) simple example.

    And of course the last modified by / on fields for person and date/time won't get updated. And auditing won't record the changes.

    Dead simple - don't do it. There are plenty of methods of updating records using out of the box functionality, third party solutions or writing custom code for more complex requirements or large loads that need performance optimisation.

  • Suggested answer
    Magor Kovacs Profile Picture
    1,835 on at

    Hello Husman,

    Let me chip in here from the Microsoft Supportability perspective. Making direct changes in the database structure of CRM (this also includes changing data) is a not supported modification which means that Microsoft is unable to offer support should the modification lead to issues.

    As Adam has pointed out, based on different needs, there are great ways, both in-CRM or third party to do the modifications without jeopardizing database integrity.

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…

Neeraj Kumar – Community Spotlight

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

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans