Article

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 offer several user-friendly features. Before introducing business rules, these functionalities were achieved using JavaScript.

Business Rules:

Business rules which minimize the need for 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.

Scope:

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

The scope ‘All Forms’ is selected when the business rule is to be executed at the 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.

Limitations:

  • 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 log in 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 is 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 Milestone’s MS Dynamics CRM expertise.

Facebook
Twitter
LinkedIn
Categories

Select a Child Category
category
6740b0375062b
1
0
226,352,350
Loading....
Recent Posts
Social Links

Related Posts

Want to Learn More?

Milestone experts take the time to listen, understand your needs, and provide the right mix of tools, technology, and resources to help you meet your goals.

Request a complimentary consultation to get started.

Request a Complimentary Consultation

Skip to content