What are business rules in Microsoft Dynamics 365?

Definition:

 Business Rules are basically server-side logic that is used with canvas or model-driven apps to set or clear values in one or many columns in a table.

 Business Rules are also used to validate stored data or show error messages.

 Business Rules provide a powerful way to enforce rules, set rules, or validate data regardless of the form that is used to input data.

 Business Rules are effective in helping to increase the accuracy of data, simplify application development and streamline forms presented to end-users.

 In Microsoft Dynamics 365 the Model-driven apps can use Business Rules to:

  • show or hide columns
  • enable or disable columns
  • create recommendations based on business intelligence





Note:

 Business Rules are usually defined for the table and apply to all forms.

 Business Rules can define for specific model-driven form.

 Canvas apps cannot have a business the rule applied to a specific form.


Usage of Business Rules:

 canvas apps or model-driven apps use business rules to:

  • To Set column values.
  • To Clear column values.
  • To Validate data and show error messages.

 Model-driven apps can also use business rules to:

  • To Show/hide columns (model-driven apps only).
  • To Enable/disable columns (model-driven apps only).
  • To create business recommendations based on business intelligence (model-driven apps only).

Components of Business Rules:

Condition: 
Business rules have conditions used to check the business rule is run based on the values which are added or edited in the table. The condition has two results true or false and you can add more than one condition in business rules.

Action: 
Action means logic e.g setting the column to a certain value that runs on either true or false condition.

Scope: 
Business rules also contain scope which are:
  • Table
  • All forms
  • Specific form
➤ Business rules are used by the canvas app which always has the scope set to the table.

 

Comments

Popular posts from this blog

Microsoft Dynamics 365 & PowerApps Developer - Plugins in the Microsoft Dynamics 365

How to create Custom Security Roles for environment in Microsoft Dynamics 365 CRM?

How to create and manage Environment in Microsoft Dynamics 365 CRM?