Adapted from Microsoft Learning
Original Microsoft Learning lab page
Adapted from Lab 2, Exercise 3: Monitor Workflow Runs in the MicrosoftLearning/AB-620T00_build_integrated_ai_agents_in_copilot_studio 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 verified understanding of successful, approval and failed workflow runs for Create return authorization and Approve refund request, including where payloads and errors appear.
Prerequisites
- Completed Lab 2, Exercises 1 and 2, with both workflows published and attached.
- At least one successful test run you can inspect, plus permission to trigger a further Preview test.
Scenario
Once workflows are attached to the agent, support leads need to see what actually ran: inputs, Dataverse writes, approval waits and failures. This exercise trains you to read those traces before you add more tools.
Learning outcomes
By the end of this lab, you will be able to:
- Inspect a successful Create return authorization run and cross-check its payload.
- Trace a human-in-the-loop Approve refund request run.
- Force a missing-input failure and locate the error surface.
Lab instructions
Prerequisites & Preparation Check
Confirm both workflows from Lab 2 Exercises 1 & 2 are published, attached, and have prior execution history.
Phase 1 (Task 1): Inspect a Successful Run of Create return authorization
Trace inputs, Dataverse record creation, email dispatch, and agent response outputs for a completed return authorization run.
Phase 2 (Task 2): Inspect a HITL Run of Approve refund request
Examine conditional branching, supervisor approval outcome, Dataverse row update, and final outputs on an above-threshold refund run.
Phase 3 (Task 3): Force a Failure / Missing-Input Test and Inspect Error Surfaces
Send an incomplete return request in Preview and determine whether the agent orchestrator or the workflow caught the missing required input.
What you built
You reviewed successful, approval and failed workflow runs for the Lab 2 flows and confirmed where payloads, approval traces and error messages appear.
Open the original Microsoft Learning lab page or view the source GitHub repository.