Edit

Share via


Apply custom business logic by using business rules and flows in model-driven apps

Defining and enforcing consistent business processes is one of the main reasons to use model-driven apps. Consistent processes help ensure that people using a model-driven app can focus on their work and not on remembering how to perform a set of manual steps to reach their objectives.

Business logic falls into two major categories natively within model-driven apps: business rules and business process flows.

Business rules

Business rules provide a simple interface to implement and maintain fast-changing and commonly used rules. The scope of a business rule defines where the business rule runs:

If you select this item... The scope is set to...
Table All forms and server
All Forms All forms
Specific form (Account form, for example) Just that form

For more information about defining business rules for a form in a model-driven app, go to Create business rules to apply logic in a model-driven app form.

Note

To define a business rule for a table so that it applies at the server level to both canvas apps and model-driven apps, go to Create a business rule for a table.

Business process flows

By creating a business process flow, you ensure that people enter data consistently and follow the same steps every time they work in an app. These flows are authored by using the business process flow designer and only work with model-driven apps. For more information, go to Business process flows overview.

Power Automate flows

Power Automate includes several types of processes, each designed for a different purpose that can be designed to automate tasks in Dataverse or many other data sources to enhance model-driven apps:

Sample model-driven app

  • Workflows and actions. Dynamics 365 customizers might be familiar with the classic Microsoft Dataverse processes, which are workflows and actions. More information: Use Workflow processes and Actions overview

  • Automated flows. Create a Power Automate cloud flow that performs one or more tasks automatically after it's triggered by an event. These flows have the added advantage of being able to reach into the connector framework within your environment and connect to other data sources, such as SQL, SharePoint, or any of the other 400 data sources and services. More information: Create a flow

  • Button flows. Create a Power Automate cloud flow that performs repetitive tasks simply by tapping a button on your mobile device. More information: Introducing button flows

  • Scheduled flows. Create a flow that performs one or more tasks on a schedule, such as once a day, on a specific date, or after a certain time. More information: Run flows on a schedule

Next steps

Create business rules to apply logic in a model-driven app form

Learn about business process flows

Apply business logic with Dataverse