Adapted from Microsoft Learning
Original Microsoft Learning lab page
Adapted from Lab 09: Build a Critical Request Approval Flow for Contoso in the MicrosoftLearning/AB-410T00-Build-intelligent-applications repository, made available by Microsoft Learning under the MIT License.
Copyright (c) 2024 Microsoft. See the repository LICENSE file.
View full MIT License text
MIT License
Copyright (c) 2024 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Changes made by IGOE AI: converted into a UK English follow-along checklist with browser progress tracking, prerequisites and a recap. This is not an official Microsoft page and is not endorsed by Microsoft.
Watch the video
A walkthrough video will appear here once the YouTube ID is added.
What you will build
A tested solution cloud flow that intercepts Critical Work Orders, sends an actionable Microsoft Approvals request, and updates Dataverse status on approval or rejection.
Prerequisites
- Completed Lab 03 (Work Order table) and Lab 06 (model-driven app).
- Power Automate Approvals and Dataverse connectors enabled in Dev One.
Scenario
Dispatching a technician to a Critical priority Work Order triggers emergency call-outs and overtime costs. Contoso service managers require an automated approval gate before Critical jobs move forward.
Learning outcomes
By the end of this lab, you will be able to:
- Look up exact Dataverse Choice integer values rather than guessing labels.
- Filter a Dataverse trigger condition to fire only on Critical priority Work Orders.
- Handle Approve and Reject branches with Start and wait for an approval and Update a row.
Lab instructions
Phase 1: Create the Approval Flow
Phase 2: Look Up the Priority Choice Value in Dataverse
Phase 3: Configure the Trigger & Priority Condition
Phase 4: Add the Approval Action
Phase 5: Handle the Approval Outcome (Approve vs. Reject)
Phase 6: Test the Approval Flow End-to-End
Quick reference
| Stage | Connector / Control | Key Configuration |
|---|---|---|
| Trigger | Microsoft Dataverse | When a row is added, modified or deleted • Change type: Added or Modified • Table: Work Orders • Scope: Organisation |
| Priority Check | Control • Condition | Priority (trigger) is equal to [exact Critical integer value, no commas] |
| Approval Action | Approvals Connector | Start and wait for an approval • Type: Approve/Reject - First to respond • Assigned to: MOD Administrator |
| Approved Branch | True (Outcome = Approve) | Update a row (Dataverse) • Table: Work Orders • Row ID: Work Order • Request Status: Assigned |
| Rejected Branch | False (Not Approved) | Update a row (Dataverse) (Priority = High, Request Status = New) → Send an email (V2) to MOD Administrator |
What you built
You looked up the exact integer value for the Critical choice option, built an approval cloud flow with Approve and Reject branches, and verified both Dataverse updates and email notifications.
Open the original Microsoft Learning lab page or view the source GitHub repository.
See where your organisation stands
Complete the short AI and automation scorecard. Your answers stay in your browser. Nothing is sent or stored, and there is no email sign-up.