Every action in Microsoft Dynamics CRM 2016 results in a call made to the organization's web service. The message contains business entity information and core operation information. These messages are passed through a standard execution pipeline or stages where it can be modified by any custom logic written by users. This custom logic is a plugin.
The event pipeline is divided into multiple stages out of which four are available to register custom-developed or third-party plugins.
Mentioned here are the four stages in the plugin execution pipeline in which we can register custom code:
Event | Stage Name | Stage Number | Description |
Pre-Event | Pre-Validation | 10 | The plugins registered in this stage are executed before the main operation. The events are executed outside of the main database transaction. |
Pre-Event | Pre-Operation | 20 | The plugins registered in this stage are executed before the mail operation. The events are executed within the database transaction. |
Platform Core... |