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 :
Microsoft Dynamics CRM (Archived)

difference between Outside db Transcation and executes within the db transcations in dynmics crm plugin

(0) ShareShare
ReportReport
Posted on by 5

In Pre-validation - outside db transcations

In Pre-operation and post operation within in the db transcations.

can anyone briefly describe this outside/inside and what type of messages are supported for particularly for pre-validation,pre-operation,post-operation

Thanks!

*This post is locked for comments

I have the same question (0)
  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: difference between Outside db Transcation and executes within the db transcations in dynmics crm plugin

    Hi,

    I am assuming you have already referenced the article so will provide you some text in general-

    When you submit a request (create, update etc) to CRM, it first do the data validation before sending the request to database. So basically validation means CRM is checking the data being submitted and if there is any error then it will return it from there. With validation, there is no connection made to the DB. Whereas when ypu enter Pre Operation/ Post Operation, CRM is now connected to DB and processing your changes. In this, it first process Pre event which executes before the main operation (i.e. create, update etc) and Post event which executes after the main operation. Now pre & Post operation executes inside teh DB transaction which means if there is any erro in either Pre, Post or main operation. Any changes made during the process will rollback. For e.g. if you have a plugin on pre operation which creates a record and then post operation fail for some reason, the record created in pre operation will be rolled back.

    Hope this helps.

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Guido Preite Profile Picture

Guido Preite 5 Moderator

#2
sandeepc Profile Picture

sandeepc 2

#2
Community Member Profile Picture

Community Member 2

Featured topics

Product updates

Dynamics 365 release plans