Blog Archives

Unable to login to Dynamics CRM error while generating Crm proxy class – CrmSvcUtil

If you are experiencing the error ‘Unable to login to Dynamics CRM’ while generating the CRM Proxy class using CrmSvcUtil tool, you should try this to resolve it.

There is a new command parameter added to the CrmSvcUtil tool : interactivelogin:true

You may append this command parameter to your CrmSvcUtil command line and this would give you a pop up to enter the credentials and would sort the above mentioned issue.

Your command would look like:

CrmSvcUtil.exe /url:<Server url>/<Organization> /username:<username> /password:<pwd> /domain:<domain> /out:”Xrm.cs” /namespace:Xrm /serviceContextName:CrmContext /interactivelogin:true


Interactive Login popup window:



What is ‘Ticker Symbol’ field format in Microsoft CRM?

Ticker Symbol is a one of the formats of field type ‘Single Line of Text’ in Microsoft CRM.



This is a kind of text field which stores the value as string but clicking on this field value would open the ‘MSN money page’ [Stock Market details] for the text in the field value. Read the rest of this entry

‘First Response By’ and ‘Resolve By’ fields are not getting populated on case form for enhanced SLA

When you implement SLA feature in CRM 2015/2016 you might worry about these fields as they would be filled only based on the SLA type – ‘Standard’. You may remove the fields from the Case form depends on the SLA type (‘Enhanced’) you opt for the CRM setup.


If you enable the standard SLA, the below fields would be populated with values: Read the rest of this entry

How to set default Entitlement during Case Creation in CRM 2016?

Before CRM 2015 Update, users had to set the entitlement to a case record manually and as with the latest Microsoft CRM update, it can be automated.


An entitlement can be set as a ‘Default Entitlement’ for a customer and thereafter when a case is created for the customer, which entitlement will be assigned to the case automatically which saves service user’s time. Read the rest of this entry

How to setup Routing Rule in CRM 2016/2015/2013 Update

In versions prior to CRM 2013, an entity could only be routed to default queue of the owner of the record when record is created or assigned. For any other conditional routing, custom development was the way to go.

Now with CRM 2013 update and above versions, we can configure rules to automate routing of Cases. At the moment this feature is only available for Case Entity.


Create Routing Rule Set:

  1. Go to Settings->Service Management->Routing Rule Sets


2. Create a new Routing Rule Set. One Routing Rule Set can have multiple rule items. Provide the Routing Rule Set Name and save the record to create rule items under this rule set. Read the rest of this entry

How to upgrade a CRM 2015 multi-tenant deployment to CRM 2016?

By running the setup file for CRM 2016, you can upgrade one organization and rest of the organizations would be disabled automatically. After the successful upgrade of first Organization in the server, other organizations need to be upgraded from ‘Deployment Manager’.


In the current scenario, I have CRM 2015 server with two organizations ‘Demo’ and ‘Demo2’.

  • Select any Organization to be upgraded while running the CRM 2016 setup

1     2

  • Organization ‘Demo2’ alone is upgraded to CRM 2016. Organization ‘Demo’ is not upgraded to 2016 and is disabled automatically. It needs to be upgraded from Deployment Manager.


  • Open the ‘Deployment Manager’. Clicking on ‘Upgrade Organization’ will pop up the Upgrade Organization Wizard.


  • Select ‘Upgrade’


  • Organization ‘Demo’ is upgraded to CRM 2016


How to setup Hierarchy Security in CRM 2015?

Hierarchy Security is a new feature introduced in CRM 2015. It makes the security architecture of CRM 2015 more flexible.

Common facts about Hierarchy Security

Before explaining how to setup hierarchy security in CRM 2015, I would like to mention few facts about Hierarchy Security.

  1. You can enable or disable hierarchy feature anytime from Settings>Security>Hierarchy Security
  2. Hierarchy feature can either be enabled on Manager Hierarchy or custom Position Hierarchy – cannot be enabled on both at the same time
  3. Hierarchy Depth is being used to limit the levels of access
  4. A manager or supervisor would inherit Read, Write, Append and Append To access on records owned by direct reports or owned by teams where direct reports are members in it
  5. A manager or supervisor would inherit only Read access on records owned by indirect reports or owned by teams where indirect reports are members in it
  6. To gain access via hierarchy security on any entity, Manager or Supervisor should have at least user level read access on that entity
  7. If we wish to exclude any entities from Hierarchy security access, it can be done from Settings>Security>Hierarchy Security




Read the rest of this entry

Changing parent BU removes security roles assigned to the users of that BU – Issue fixed in CRM 2015

There was a strange issue in CRM 2011 where the security roles of users part of a BU get removed when the BU’s parent BU is changed. This issue seems like fixed by Microsoft in CRM 2013 RU2 and we do not see that issue in CRM 2015 either.


If you are still using CRM 2011 and are affected with this issue, a work around would be to reassign the security roles through custom code or from UI after the parent BU change.

Through Code:

<pre>// Associate the user with the role.
        if (_roleId != Guid.Empty && _userId != Guid.Empty)
                        new Relationship("systemuserroles_association"),
                        new EntityReferenceCollection() { new EntityReference(Role.EntityLogicalName, _roleId) });

            Console.WriteLine("Role is associated with the user.");

Global Search in CRM 2015 – New CRM 2015 feature #2 explained

Global Search in CRM 2015 – New CRM 2015 feature #2 explained:


You can now search in Microsoft CRM 2015 across different record types or configure specific fields on your preferred entities. Simply enter your search criteria in the general navigation search bar and let CRM do the searching for you.




There is a new filter associated with the search result window which can be used to filter the result set further based on the entity type.



Enhanced Business Rules in CRM 2015 – New CRM 2015 feature #1explained

Enhanced Business Rules in CRM 2015 – New CRM 2015 feature #1 explained:

Now there is no need to create multiple business rules for one logic string in CRM 2015. Business rules can now contain If/Then logic and the ability to combine expressions using And/Or.

This feature would reduce much effort on adding the branching conditions in business rules as in 2013 version.

Here I am trying to create a business rule under Account entity for the below validation.

If the Account Number field is empty, then there should be an error message on the ‘Account Number’ field. Else, lock the Account Number field. With this new feature in CRM 2015, we can do a single condition IF/Else branch to achieve this.

Created a new Business rule with the required condition:


If the Account Number is empty, it shows the error message: Read the rest of this entry