Call us Today +1 630 534 0220

A plug-in is custom computer code that is compiled and registered with Microsoft Dynamics CRM to change or extend the system™s functionality.

A plugin is a custom code which is intended to be executed when specific actions (events) happen on a certain Microsoft CRM entity. Plugins are necessary when integrating MS CRM. For example, if you want to integrate MS CRM with other systems, and you need to integrate data between 2 or more systems, then you™ll need to post the newly created records (accounts for example) on CRM to the other systems.

A plug-in is essentially an add-in for CRM to perform some business logic during various operations; typically when a record is saved (whether create or update). These can operate synchronously or asynchronously – though many users want whatever it is to happen immediately; rather than wait some (unspecified) time (ala workflow) – so synchronous is the obvious choice.


For example:


  • An “auto-number” field (a “membership” number?) – generate new unique number, check for uniqueness
  • ”Ripple down” updates from one entity to another
  • Attaching sales literature to email

Pre or Post

A plug-in can run pre or post action (create/update) – this allows you to modify the record prior to saving (for instance) or run after saving to update other records.

A new concept called ‘Solution’ which bundles the components was introduced in CRM 2011. Solutions could help us to deploy plug-ins in a very good manner. If you open a solution in CRM 2011 you could find out a section called ‘Plug-in Assemblies.

Plug-in Assemblies

Now consider we have a plug-in called myPlugin with steps Create and Update of Contact Entity. So let’s register the plugin using the CRM 2011 Plugin Registration tool.

Once its registered, it would be available in our solution. So navigate to Plug-in Assemblies section of the solution and click on ‘Add Existing button’ . Then you would get the following window. All registered plugins would be listed here.

We could choose the plugin and then click OK.

So our plugin is added to the solution as shown above. So this is how we bundle the plugin in the solution. However its a very good practice to bundle the steps of plugin too.
So lets consider the following 2 steps to be bundled in the solution.

Create Contact & Update Contact steps

So navigate to ‘Sdk Message Processing Steps’ section of our solution which could be found just below the ‘Plug-in Assemblies’ section. And click on add existing option.

As you could see the plugin message steps are added to the soultion.


Do You Need more information ?


For any further information / query regarding Technology, please email us at info@varianceinfotech.com
OR call us on +1 630 861 8263, Alternately you can request for information by filling up Contact Us
facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

Leave a Reply

Your email address will not be published. Required fields are marked *

*