September 2011
Intermediate to advanced
1008 pages
24h 27m
English
Plug-ins can be set up in the Pre or Post stages:
The Pre stage sends control to the plug-in before the real event is executed in the core system. As an example, you might attach a plug-in to the Create event of the Account entity; your code would execute before the Account was actually created in the CRM system. With this method, you could prevent the Account or the entity record from being created.
The Post stage is executed after the real event has executed in the core system. So, following the example just described, your code would be executed only after the Account record is created.
This new version of Dynamics CRM 2011 allows these stages to participate on SQL transactions as well. So, you can use the Pre stage outside or inside ...