-
Continue reading →: Could not load file or assembly ‘Microsoft.IdentityModel’ exception on wrapper class generation in CRM 2011
Hi, You may come across the below exception while generating wrapper classes using “crmsvcutil.exe” tool which comes along with CRM SDK. Could not load file or assembly ‘Microsoft.IdentityModel Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find specified Reason :- The reason for this error could be the machine…
-
Continue reading →: “Could not open a connection to SQL Server” error while installing CRM 2011 Server
Hi, You may come across below exception while installing CRM 2011 Server. “Named Pipes Provider, error: 40 – Could not open a connection to SQL Server “ Scenario :- You have a standalone machine “VM 1”, with SQL Server 2008 application You have another machine “VM 2”, where you are trying to install “CRM Server” by…
-
Continue reading →: JScript validation on Activation/Deactivation of record in CRM 2011
Hi, We can perform JScript validation on Activation or Deactivation of a record in CRM 2011. We can achieve this by reading event save mode from CRM context (i.e.,CRM returns unique Codes or Numbers for different actions; Example 5 for Deactivation button click & 6 for Activation click). Note :- CRM 2011 JScript allows us to…
-
Continue reading →: Types of services in CRM 2011
Hi, Below are 3 main services that developers can use to extend the Dynamics CRM 2011 platform Deployment Web Service Using this service we can Create or import organizations Enable and Disable organizations Add deployment administrators Configure IFD and Claims-based authentication 2.Discovery Web service Using this service we can Identify the…
-
Continue reading →: Email format validation in CRM
Hi, The out of the box CRM Email field type does not validate whether the given email is ending with “.com”,”.in”,etc… (Refer below) rajeevpentyala@live (Its a valid email format as per out of the box CRM Email Type validation) We can validate all the metrics of Email format by using below steps. Step 1:-…
-
Continue reading →: Activate or Deactivate record in CRM 2011
Hi, We can Activate\Deactivate record using “SetStateRequest“. Below is the code snippet. private void SetEntityStatus(IOrganizationService service, Guid recordGUID, string entityName) { SetStateRequest setState = newSetStateRequest(); setState.EntityMoniker = newEntityReference(); //Pass GUID of the record to be activated or Deactivated setState.EntityMoniker.Id = recordGUID; setState.EntityMoniker.Name = entityName; setState.EntityMoniker.LogicalName = entityName; //Setting ‘State’ i.e., (0 – Active ; 1 – InActive)…
-
Continue reading →: Set field values using query string parameters on Form load in CRM
Hi, I have got below requirement, I need to open a CRM form from my custom ‘.aspx’ page. On opening of the form I should populate “name” field with value After referring MSDN article, I came to know that we can set the field values using “extraqs” query string parameter and it must meet below…
-
Continue reading →: Execute the workflow from JScript In CRM
Hi, We can run the CRM workflows from JScript, if we know the GUID of the workflow. Below are the execution steps. Steps :- Get the GUID of workflow from name using OData Service (i.e., Using GetWorkflowIDByName(wfName) function ) Execute the Workflow using the GUID (i.e., Using TriggerWorkflow(workflowGuid) function) Below are the JScript…


