Translate this site using Windows Live Translator:
CRM 4.0 Plugin Registration - A CRM Riff - Site Home - MSDN Blogs
A CRM Riff
It takes people to make the music of life

CRM 4.0 Plugin Registration

CRM 4.0 Plugin Registration

  • Comments 0


A tool to register for all messages and entities.

This project extends the Plugindeveloper tool supplied in the CRM SDK v.4.0.4 to allow easy registration of a plugin for multiple messages and/or entities.
It uses the sdkmessagefilter class to retrieve all valid message and entity combinations, and uses a BulkStep element within the register.xml file to specify which of these combinations to use. The main additional code is in the new file MessageFilter.cs, and the construtor of the Solution class has been modified to use the new MessageFilter class.

A few additional modifications to the Plugindeveloper tool have been included:

  • Set the Timeout on the web service proxy calls to 20 miuntes, so as to allow for the extended processing time when registering for a large number of messages
  • Allow the tool to connect to CRM using the current credentials if the UserName is not specified in register.xml
  • Allow plugins to be registered in the file system by setting the pluginassembly.path property

All these modifications have been commented with: // DJ

The full solution has been built with web references to a CRM server at http://CRM that uses Active Directory authentication. This tool can be used in conjuction with the PluginLogger tool here to track all plugin events.

Kudos to David Jennaway.

Leave a Comment
  • Please add 8 and 4 and type the answer here:
  • Post