Category Archives: Plugin

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: Issue with plug-in in CRM 2011 »

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 Tracing in CRM 2011 Plugins »

Issues with class level declaration in CRM 4 Plugins and Workflows

It is important that you avoid class level declaration and initialization of variables in Plugins and Workflows. Let us discuss the issues that one can face with Plugins. Plugins as you know is executed synchronously. But if there happen to be multiple calls made to the same plugin assembly and class, a new object for… Read More: Issues with class level declaration in CRM 4 Plugins and… »

How to use Parameters in Workflows/Plugins

CRM Plugins and Workflows provide the ability to pass external information to the plugins as well as receive information from plugin that can be used for further processing. Plugins: In case of Plugins, you can use the Secured Parameter and Unsecured Parameter that is available during Plugin registration to pass static information that can be… Read More: How to use Parameters in Workflows/Plugins »

New Plugin Messages made available by Microsoft in Dynamics CRM 4.0

Execute: The execute event always gets fired when you open the views. Like from Main application view, lookup view, Advanced search view etc. (but not from associated views).While registering this event, no primary entity name is required.Input parameter: fetchxml – The fetchXML query sent.Output parameter: fetchxmlresult – The resultant records of the fetchXML query Retrieve:… Read More: New Plugin Messages made available by Microsoft in Dynamics CRM… »