Plugins 101 In Microsoft Dynamics CRM 2015

8
Plug-Ins 101 in Dynamics CRM 2015

Transcript of Plugins 101 In Microsoft Dynamics CRM 2015

Page 1: Plugins 101 In Microsoft Dynamics CRM 2015

Plug-Ins 101in

Dynamics CRM 2015

Page 2: Plugins 101 In Microsoft Dynamics CRM 2015

Agenda

Why Plugins? Event Pipeline Messages Images How to develop a plugin?

Page 3: Plugins 101 In Microsoft Dynamics CRM 2015

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

Page 4: Plugins 101 In Microsoft Dynamics CRM 2015

Event Pipeline

Pre-event/Pre-Validation Pre-event/Pre-Operation Platform Core Operation Post-Event

Page 5: Plugins 101 In Microsoft Dynamics CRM 2015

Messages

Plug-in Message is the triggering event, such as Update or Create.

Most commonly used messages are… Create Update Delete Retrieve RetrieveMultiple Etc.

Page 6: Plugins 101 In Microsoft Dynamics CRM 2015

Images

Snapshots of the entity’s attributes, before and after the core system operation.

Messages Stage Pre-Image Post-ImageCreate PRE No NoCreate POST No YesUpdate PRE Yes NoUpdate POST Yes YesDelete PRE Yes NoDelete POST Yes No

Page 7: Plugins 101 In Microsoft Dynamics CRM 2015

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.

Page 8: Plugins 101 In Microsoft Dynamics CRM 2015

Thank You!