Monday 31 October 2016

PLUG-IN

What is a plug-in, Why do we need a plug-in,  When should a plug-in be used?

The What

Plug-ins are handlers that handles event fired or raised by the Microsoft Dynamics CRM platform. It could be an entity e.g. account, lead e.t.c. Plug-ins are event handlers since they are registered to execute in response to a particular event being fired by the platform. You can subscribe, or register, a plug-in to a known set of events to have your code run when the event occurs.

The Why

  • Modify or augment the standard behavior of the platform



The When

  • When you need to enforce business logic in your database that you cannot accomplish reasonably with built in tools like workflows
  • When your business logic must be executed synchronously or asynchronously

Debug Plug-in CRM 2013


Debugging Plug-in goes hand-in-hand with profiling in CRM. It is best to use the plug-in registration tool to debug your plug-in and also analyze the plug-in through profiling. Going through the CRM SDK 2013 and some online researches like Debugging Plug-in will give a better understanding on how to debug a plug-in CRM.