Become a Dynamics 365 expert with Syvantis Learn
Provide additional details about the offer you're running.
This store requires javascript to be enabled for some features to work correctly.
Provide additional details about the offer you're running.
Build a Power App for an internal approval process
Power Apps • Power Platform
Learn how to build a basic internal approval app in Power Apps using Dataverse. This Fast Class walks through creating an approval interface, filtering records by approver and approval status, and using the Patch function to update approved records.
Power Apps can provide a simple interface for reviewing and approving records stored in Dataverse. In this example, the app uses appointments to represent timesheet entries, but the same basic approach can be adapted for other Dataverse records, such as orders, account changes, or customer creation approvals.
The app starts with Power Apps' Gallery connected to table template. While a blank canvas provides more opportunities for customization, the template includes useful functionality such as a gallery, form, search field, and record controls.
Setting up the approval process
An approval process needs enough information to determine where a record is in the process and who is responsible for reviewing it. The example uses three important fields:
The approval status uses options for Approved, Submitted for Approval, and Unsubmitted. Your underlying system also needs logic that responds to those statuses, such as preventing a record from progressing until it has been approved.
Filtering records for the approver
An approval app should only show users the records they are responsible for reviewing. The app's existing Search function can remain in place while an additional Filter function narrows the records displayed in the gallery.
Initially, the approver can be filtered using a specific person's name for testing. However, hard-coding a name means everyone who opens the app would see that person's records. The User function solves this problem by identifying the person currently using the app through their Microsoft Entra account. Using the current user's full name allows the gallery to display only records assigned to that approver.
Filtering by approval status
The app also needs to prevent users from seeing records that aren't ready for approval. An Unsubmitted record shouldn't appear in an approver's queue, and an Approved record no longer needs their attention. An additional filter can limit the gallery to records with a Submitted for Approval status.
When working with a Dataverse option set, make sure the filter references the appropriate option set value rather than treating the status as ordinary text. Together, these filters create a more useful approval queue containing records that:
Adding an approval button
The template doesn't include an approval action by default, so the next step is adding a button. Because the template uses containers, the button can be added to the top bar and repositioned within the container. Keeping controls within the container helps maintain consistent alignment across different screen sizes. The button's OnSelect behavior determines what happens when someone approves a record.
Updating the record with Patch
The Patch function can update the selected Dataverse record when the approval button is selected. For this process, Patch needs three main pieces of information:
The app uses the gallery's selected record and changes its Approval Status to Approved. Once the record has been approved, it disappears from the approval queue because the gallery is filtered to show only records with the Submitted for Approval status.
Handling more complex approval logic
Changing an approval status in Power Apps is only one part of a complete approval process. The underlying application or data source still needs logic to determine what happens after that status changes.
For more complicated processes, consider using the approval button to trigger a Power Automate flow. Power Automate can handle additional business logic and system changes rather than placing all of that functionality directly inside the Power App. The app could also be expanded with additional actions, such as a button that notifies someone that their submitted record needs corrections before it can be approved.
Finishing the app
After testing the approval process, save and publish the Power App so that authorized users can access the finished version. This basic approach provides a starting point for building an internal Dataverse approval experience while leaving more complicated business logic to the systems and automation supporting the process.
* This transcript summary has been generated from the Fast Class video by Microsoft Copilot. The Fast Class itself was prepared and taught by Syvantis expert consultants.
TUNE INTO THE LIVE CLASS
Ask your questions and get real-time responses from your trusted Syvantis consultants.
What's on the schedule?
Dynamics 365 Business Central
Dynamics 365 Sales (CRM)
Dynamics 365 Customer Insights
Power Platform
Keep learning...
Business Process Designers. Technical Experts. Dedicated Partners.