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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)
Active Discussion

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

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans