Wednesday, August 14, 2013

CRM 2011 - Plugins - Isolations,Trust & Statistics

In CRM 2011 we can register a plugin in two ways, either within the sandbox (an isolated environment) or outside the sandbox.
 
Termed as partial trust or full trust the features for each of these approaches are as follows,

Partial Trust Full Trust
Within the sandbox Outside the sandbox
For online deployment, plugins should be registered this way. Supported for on premises and Internet Facing Deployments

Advantages of using the isolated mode would be,
  1. Security
  2. Supports runtime monitoring
  3. Statistics Reporting
  4. Supported for all deployments.
One thing to be noted here is that the online deployment of CRM supports custom workflow activities only if the same is registered in sandbox or isolated environment.
 
With all these advantages, the drawback if the plugin is registered in isolated environment is that Access to file system, system event log, certain network protocols, registry and more is prevented in the sandbox. Only exception to this is that it has access to external endpoints like azure.
 
Available statistics on plugin and custom work flow activities is available in the entity PluginTypeStatistic entity. This information can be collected using the request and response messages. These information will be available within 30 minutes to 1 hour after the execution of plugin or custom work flow.

No comments:

Configuration for CRM Plugins

CRM plugins are always great feature where we can automate many functionality which we cannot automate from user interface. But almost eve...