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)

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 (579)
  • 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

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