Tag Archives: Plugins

How to Debug Plugins using Profiler

One can debug CRM plug ins without connecting to CRM server or without remote debugging. Here are the steps as in how you can use Profiler for debugging plug ins:    1>     Connect to CRM using plugin registration tool of March SDK 2012.    2>      Click on Install Profiler      3>     You will find a… Read More »

Issue with plug-in in CRM 2011

We had a requirement to do some calculation and update self record of custom entity. We have created a plug-in and registered it on post operation of update event. The code was reading the post image, updating some fields and updating the same. The plug-in was working fine for single record. But when two records… Read More »

Use Tracing in CRM 2011 Plugins

CRM SDK provides way for you to include the debug details about your plug-in in case you need to trace the plug-in execution. For this you will have to initialize the “ITracingService”. The service provides way to trace the details and display it whenever plug-in fails and throws an exception. //Initialize the serviceITracingService tracingService =… Read More »

Use of Shared Variables in Plugins

Apart from the various improvisations of Plugin over Callouts, is the ability to share data between events of an entity. This option was not available when working with Callouts in CRM 3.0. The workaround we used then was to create an attribute and store the information in an attribute in the Pre Create event. In… Read More »