3. Why Plugins
Plug-in is custom code that is triggered on specific event on specific entity.
Plug-in vs. Client-side Code
Plug-in vs. Processes
Synchronous vs. Asynchronous Plug-ins
5. Messages
Plug-in Message is the triggering event, such as Update or Create.
Most commonly used messages are…
Create
Update
Delete
Retrieve
RetrieveMultiple
Etc.
6. Images
Snapshots of the entity’s attributes, before and after the core system operation.
Messages Stage Pre-Image Post-Image
Create PRE No No
Create POST No Yes
Update PRE Yes No
Update POST Yes Yes
Delete PRE Yes No
Delete POST Yes No
7. How to Develop a Plugin?
Project Template type must be Class Library.
Microsoft.Xrm.Sdk.dll reference must be added.
Class must Inherit IPlugin Interface.
Signing Assembly is required for deployment.