Understanding Business Rules in MS Dynamics CRM


Business Rules feature in MS Dynamics CRM gives us a lot of conditional functionalities that we can attach to fields on a form without using codes. Business rules in Dynamics CRM offers several user-friendly features. Before introducing business rules, these functionalities were achieved using JavaScript.

Business Rules:

Business rules which minimizes the need of complex codes, are internally converted into JavaScript by CRM and are applied to the forms. For example, using business rules, we can easily check the value of a field against another field or a constant value which is difficult to achieve using codes.


The scope of business rule can be either ‘Entity’ or ’All Forms’. When we select the scope as ‘Entity’, it executes at server side. The business rule fires whenever that entity is created or saved either from the form inside CRM or from any web application.

Selecting Entity as Scope

The scope ‘All Forms’ is selected when the business rule is to be executed at client side. In that case, the business rule is fired when the form is loaded or updated only at the client CRM form. Read more here.

Selecting All Forms as Scope
Selecting All Forms as Scope 


  • One of the limitations of business rules is that they are not executed during bulk edits and imports.
  • We can’t debug and trace business rules like we do the JavaScript.
  • The actions that can be performed using business rules are limited compared to the requirements a developer has to meet, like setting a field value by appending two other field values and hence forces them to depend on JavaScript.
  • Also business rules are launched in the order they are activated. So one has to know all the business rules and the order in which they are to be executed in an entity.
  • The number of If…Else statements in a business rule is limited to 10.
  • The execution of a business rule is always enforced. There is no control over their execution. When a JavaScript and business rule acts on the same field of a form, the precedence is for System JavaScript followed by Custom JavaScript and then business rules.
  • A JavaScript cannot be called from a business rule.
  • A business rule can be acted only on the fields of local entities and not on the fields like look up of related entities or parent entities. Also business rules can’t interact with tabs and sections.

Setting Business Rules in MS Dynamics CRM:

To view the Business Rules, you can login to your MS Dynamics CRM page and select the appropriate option (for example Sales> Contact). Then select the entity and click New> Form> and click on Business Rules. You can view all the previously created business rules. Example given below.


For creating a new business rule, you can click on the ‘New Business Rule’ option on the bottom right corner of the screen. As illustrated in the first two screenshots, you can follow the instructions given and set the business rules as needed for fulfilling your business purposes.

Keep watching this space for more blogs that analyze various interesting features of MS Dynamics CRM and also Dynamics 365.

Contact us to know more about Suyati’s MS Dynamics CRM expertise.

Related Posts:

About the Author:

manju-photo-001Manju Augustine is currently working as a Software Developer at Suyati Technologies. She is part of the MS Dynamics CRM team at Suyati, and is proficient in MS Dynamics CRM as well as ASP.NET platforms. She likes to explore the latest in technologies and also loves listening to songs and playing Badminton.


Author : Manju Augustine Date : 22 Dec 2016