Trigger a defined approval
Previously, you learned how to create a Contoso Coffee machine request and a simple approval workflow that, when triggered, sends an approval to you for approval. This module extends this functionality by using a Power Automate cloud flow to begin a business approval process when a machine request is created in Dataverse.
Note
If you’re not familiar with approvals in Power Automate, the Get started with approvals article provides some examples of what you can achieve with the standard Microsoft Power Platform Approvals Connector together with Power Automate. The Approvals Kit extends similar approval scenarios with extra features, as discussed in the following sections.
Example process
An example process involves a basic self-approval by using the Contoso Coffee scenario, where a request is triggered when new request data is added to Dataverse. Later modules extend this workflow where a second manager approval is requested when the value of the machine request is greater than USD 400.00.
You could build this combined scenario by using multiple Power Automate cloud flows, but this scenario can be time-consuming to develop. By using the Approvals Kit, you can model the same process quickly and then focus on setting up the business approvals process.
Workshop structure
The goal of this workshop is to incrementally build your knowledge of the Approvals Kit. The first module is intentionally basic to help you get familiar with the kit.
The Approvals Kit provides a no-code way of defining multistage approvals and conditions like the ones that the next unit covers.
Later modules of this workshop also demonstrate features, such as handling delegated approvals and out-of-office support, which help make building complicated approval processes even easier because you don’t need to build these features using Microsoft Power Platform solutions.
Note
If you want to explore this topic further, see the Approvals Kit Comparison documentation.
Create a solution
The first task is to create a Microsoft Power Platform solution to create a container so that you can group your related platform resources together.
Note
If you're new to the concept of solutions, the Solutions overview and Solution concepts articles provide further information.
Sign in to Power Apps.
Select the assigned Approvals Kit environment for this workshop content.
Select Solutions from the left navigation pane. If the item isn’t in the left navigation pane, select ...More and then select Solutions.
Select New Solution.
Enter the solution display name of Contoso Coffee Approvals.
Select Contoso as the publisher.
For more information, see Solution publisher.
Select Create.
Wait for your solution to be created.
Create a cloud flow
In your created solution, complete these steps:
Select New > Automation > Cloud flow > Automated.
For more information, see Create a cloud flow in a solution.
Enter Machine Request as the flow name.
Search for a trigger by entering Dataverse to choose your trigger.
Select the When a row is added, modified or deleted (Microsoft Dataverse) trigger.
Select Create.
Select Added from the Change type dropdown menu.
Select Machine Orders from the Table name dropdown menu.
Select the scope of the change, such as Organization. For more information, see Scope.
Note
For more information on Dataverse trigger parameters, see Trigger flows when a row is added, modified, or deleted.

Select New Step.
Select the Custom tab.
Select the Start business approval process action.

Select Sign in if prompted and then select your account.
If prompted, select Allow access to confirm creation of the Approvals Kit connection.

- Select the Machine Requests (v1) workflow process that you published in the Create your first Approval Kit workflow unit.

The Request By must be a value email. You can select the Requested By from the Dynamic Content
Select Save.
Wait for the cloud flow to save.
Create a new machine request
Now that you’ve defined a cloud flow trigger for the Machine Order table, you can complete the following steps to create a new machine request that triggers an approval workflow.
- Select Apps and then select Machine Ordering App.

- If prompted, select Allow for the Office 365 Users connector.

- Select a few machines and then select Compare.

- Select one machine and then select Submit.

- Select OK to close the submitted machine request.

- Close the application.
Approve the request
After you submit the machine request, the system triggers the cloud flow, which begins your defined business approval process. Use these steps to approve the request in the Power Automate portal.
Note
The exercises in this workshop are completed in the approval that’s available in the Power Automate portal. If the user is set up with an Office 365 license, the approval is also available through Outlook or in Microsoft Teams.
Open the Power Automate portal.
Select the assigned Approvals Kit environment for this workshop content.
From the left navigation pane, select Approvals.
Wait for the approval to be sent.
Select the received approval.
Select Approve.

- Select Confirm to approve the approval.

- Select Done to close the approval after it’s confirmed.
View the completed approval
In this task, you use the Business Approval Management application of the Approvals Kit to view the updated status of the approved request.
Select Solutions from the left navigation pane of the Power Automate web portal.
Select Business Approval Kit from the list of solutions.
Select Apps from the Objects navigation item.
Select Business Approval Management from the list of apps.
Select the ellipsis (...) menu next to the application name and then select Play.
Select Approval Instances from the left navigation pane.
Select the completed approval.

- Review the details and then notice that the Outcome field shows Approve.

In this unit, you combined the Contoso Coffee Machine Request solution with the business approval that you created in the Create your first Approval Kit workflow unit. Additionally, you created a Power Automate cloud flow, combining a Dataverse trigger for the Machine Order table and the Approvals Kit connector to begin a selected business approval process.
You also used the Business Approval Manager application to view the results of the completed business approval. If you received an error in the process, or if the stage hasn’t been completed, the instance status would be Running or Error.