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

Announcements

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May 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