Fire a Workflow in Dynamics CRM 2011 using C#

The following is a code sample that calls two methods: GetWorkflowId and ExecuteWorkFlow to run Workflow Programatically either C# or Plug-In : One important thing to note is that the workflow we are executing must be marked as an on-demand or child workflow; otherwise you will receive an error below.\”Workflow must be marked as OnContinue reading “Fire a Workflow in Dynamics CRM 2011 using C#”

Error – \’Solution File is Invalid\’ while importing Solution in MSCRM 2011

Today I was trying to import Contact Entity solution after done some changes in customization.xml and i found below error : \”Error while Importing a solution in CRM 2011 – The solution file is invalid. The compressed file must contain the following files at its root: solution.xml, customizations.xml, and [Content_Types].xml\” After spending a huge amountContinue reading “Error – \’Solution File is Invalid\’ while importing Solution in MSCRM 2011”

Find vs Advanced Find in MSCRM

Which one is Faster FIND or ADVANCED FIND ? Find :  Find perform a search on an attribute for which it is defined. Advanced Find : Advanced Find perform search on the conditions and the attributes for which user customizes or runs it.  Find : Normal Find is faster as it looks for one attribute and matches with thatContinue reading “Find vs Advanced Find in MSCRM”

Significance of Secondary Entity in Plugin Registration Tool while Registering Plug-In in MSCRM

\”Secondary Entity use when you have to trigger plugin or retrieve record from Intersect Entity(contactleads) having records of Entities(Contact and Lead) having N:N Relationship\”While using the Plugin Registration tool in Dynamics CRM, we might have rarely or even never used the ‘Secondary Entity’ field and almost always assigned it as ‘none’, but there are someContinue reading “Significance of Secondary Entity in Plugin Registration Tool while Registering Plug-In in MSCRM”

How to Debug Plugin in MSCRM 2011 On-Premise

The following steps describe how to debug a plug-in On-Premise :Debug Synchronous Plugin in MSCRM 2011  First Build the Plug-in solution.   Register it on Plug-in registration tool While add assembly of Plug-in solution in PRT(Plugin Reg Tool), make sure “Disk” radio button must be checked and DLL of Plug-in should contain in “File Name In Server” textContinue reading “How to Debug Plugin in MSCRM 2011 On-Premise”

Plugin Assembly Table in MSCRM

One of my colleagues faced a situation where he had installed a plugin assembly into database but was not able to locate its DLL, and now he wanted to deploy it in some other server. In MSCRM all plugins related information like its name, content, createdBy, createdOn. ModifiedBy, ModifiedOn etc store in PluginAssemblybase Table. YouContinue reading “Plugin Assembly Table in MSCRM”

Clean Up AsyncOperation(System Jobs) Table to Improve CRM Performance.

Today i am going to explain SQL Procedure Steps to cleanup MSCRM AsyncOperation table : Asynchronous Operation States : State Status Numeric status value Ready WaitingForResources 0 Suspended Waiting 10 Locked InProgress 20 Locked Pausing 21 Locked Canceling 22 Completed Succeeded 30 Completed Failed 31 Completed Canceled 32 Step 1 : Create Index on specificContinue reading “Clean Up AsyncOperation(System Jobs) Table to Improve CRM Performance.”

Overcome CRM Slowness and Optimization of Performance in Dynamics CRM 2011

Here is a checklist which can help you identify and reduce the issues with your client performance: Optimize Your Form Load Experience. Keep less fields on the form. Do not overuse scripts (Avoid OnLoad; Use OnChange since its on demand). Trim the ribbon appropriately. Be wary of client side enabled rules.  Use collapsed sections wheneverContinue reading “Overcome CRM Slowness and Optimization of Performance in Dynamics CRM 2011”