Friday 22 March 2013


Plugin message for the Marketing list Association to Campaign in MSCRM 2011:


Message : ADDITEM meesage will be fired when Marketing list Association to Campaign but not The Association message

Primary entity is : Campaign

Input parameters received in plugin context is:

1. Entity name: List
2. Campaign id: Campaign Guid
3.  Entity id: Associated marketing List Guid

Sample code:



if (context.InputParameters.Contains("EntityName"))
                        {
                            if (context.InputParameters["EntityName"].ToString() == "list")
                            {
                                if (context.InputParameters.Contains("EntityId"))
                                {
                                    marketingListId = context.InputParameters["EntityId"].ToString();
                                }
                                if (context.InputParameters.Contains("CampaignId"))
                                {
                                    campaignId = context.InputParameters["CampaignId"].ToString();
                                 }
                             }
                         }

Monday 11 March 2013


CRM Diagnostics Page to Capture Network Performance:

Network performance between the client and server will play a key factor in how well CRM performs for the end users. It is very common to have users working from remote locations where the network performance is unknown. There are several methods to test network performance, but since the release of Update Rollup 4 CRM has included its own diagnostics page to show bandwidth, latency and JavaScript Rendering performance



To use the diagnostics page you can simply browse to the page by using the URL http://<YourCRMServerURL>/tools/diagnostics/diag.aspx and click the Run button to start the tests. This page is available for both CRM Online and OnPremise


This CRM Diagnostics page will issue a series of pings from client to server and transfer several blobs of data. Based on this data it will provide the latency in milliseconds and max transfer speeds achieved. This is a quick and easy way to identify the network performance without having to install any tools on the client or server.

In the Optimizing and Maintaining Client Performance for Microsoft Dynamics CRM 2011 and CRM Online document it states that “Microsoft Dynamics CRM is designed to work best over networks with latency under 150 milliseconds”.



How to Debug CRM 2011 online plugin  BY Guru Prasad



 its difficult to debug plugins registered in sandbox on CRM 2011 online version. Follow the Steps to debug plugins registered for online version
  • Install Plugin Pro-filer in the plugin registration Tool.(if you don’t find this option, download latest SDK)
  • Now Register the plug-in and step on the Microsoft Dynamics CRM server. Keep a copy of the debug compiled plug-in assembly on the computer where you are running the tool(@SDK\sdk\tools\pluginregistration\bin\Debug)
  • Select a plug-in step and click Profile to enable profiling.
  •  Perform the operation in Microsoft Dynamics CRM that causes the plug-in to run. Ex: Here updation of Account which trigger the plugin.
  • Now the plug-in throws an exception and the Business Process Error dialog is displayed, click Download Log File and save this file.
  • In the Plug-in Registration tool, click Debug.

  • Debug Dialog will open

            select the Saved Error Log File in the “Profile Location” and then select the Plugin assembly location in the “Assembly Location” where .rdb file available to debug. select the plugin which needs to be debug in the “Plug-in” dropdown list.

    • Now open the plugin solution in Visual Studio and then place the break point to debug, attach the debugger to PluginRegistration.exe process.
    • Click Start Plug-in Execution in the Debug Existing Plug-in dialog box
    • Now the debugger will start debugging from the break point in  the VS. Now you can debug the plugin in the normal way like on-premise.
    Unable to connect to plugin registration toll for online mscrm polaris:

    Try browsing to Settings --> Customizations --> Developer Resources and use the URL under Discovery Service.  It looks like with the change to the new authentication system they changed the default discovery service URL for CRM online to use disco.crm.dynamics.com rather than the old dev.crm.dynamics.com. For the plugin registration tool exclude the /XRMservices/2011/Discovery.svc  part of the url, the tool appends that the URL you enter either way.