Business Rules are a great way to customize form behavior in Microsoft Dynamics CRM. This feature was introduced in CRM 2013 and is now available in CRM Online, CRM 2013 and CRM 2015. With a simple setup, Microsoft has provided a way to set field values, set field requirement levels, show or hide fields, enable or disable fields, validate data and show error messages, all without writing any JavaScript.

With so much functionality available you’re bound to have multiple rules for some entities and if you have inter-related Business Rules it may be important for you to run them in a specific order. Unfortunately Microsoft doesn’t provide a way to specify the order that the rules should be executed, but after some quick research, we found that they run in the order they were activated – oldest first (http://technet.microsoft.com/en-us/library/dn531086.aspx#BKMK_OrderOfLogic).

Need Dynamics CRM or D365 Hosting?

Cobalt has 3 different hosting packages and 15+ years of hosting and Dynamics expertise.

Review Our Hosting Packages

So, the trick is to deactivate all of the business rules for a specific entity and reactivate them in the order you want them to execute. This works well when you create the rules all at once, but it doesn’t allow you to see what the current order is after the fact. This becomes an issue when adding new rules or troubleshooting.

To work around this limitation, you can simply use Advanced Find (our longtime favorite CRM feature) to find the rules. You can infer the activation date from the Modified On date since you can’t make changes unless you deactivate the rule. Business rules are a type/category of process in CRM, so an advanced find of active process where the primary entity is the entity whose rules you’re reviewing will do the trick.

business_rule_find
business_rule_find_results

The other really cool feature is that you can deactivate and edit the business rules directly from the advanced find results! If you sort the view/results by the Modified On date, you can quickly view the execution order.

Considering a CRM Migration?

Is your team considering a CRM migration at some point? Cobalt have completed hundreds of secure, seamless CRM migration projects and developed some resources for teams like yours. Review the best of what we’ve learned through 26+ years of CRM experience: