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)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.
Guido Preite
5
Moderator
sandeepc
2
Community Member
2