AB-620T00About 35 minutesAdapted November 2026

AB-620T00 Lab 2, Exercise 1: Author a workflow that writes to Dataverse and sends confirmation email

Build, publish and attach the Create return authorization workflow so the Customer Support Rep Assistant can write a Returns row in Dataverse and send the customer a confirmation email.

IGOE AI learning resource. This is an independent adaptation of MIT-licensed Microsoft Learning lab materials, not official Microsoft courseware and not a promise of course inclusions.

Adapted from Microsoft Learning

Original Microsoft Learning lab page

Adapted from Lab 2, Exercise 1: Author a Workflow That Writes to Dataverse and Sends Confirmation Email 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.

0 of 30 steps complete

What you will build

A published, agent-callable Create return authorization workflow attached to the Customer Support Rep Assistant, with trigger inputs, a Dataverse create step, a confirmation email and outputs returned to the agent.

Prerequisites

  • Completed Lab 2, Exercise 0 so the Returns table exists in your solution.
  • The Customer Support Rep Assistant agent from Lab 1 is available in Microsoft Copilot Studio.

Scenario

When a customer wants to start a return, the agent should not just describe the process. It should create a Returns record and email a confirmation, using a deterministic workflow the agent can call mid-conversation.

Learning outcomes

By the end of this lab, you will be able to:

  • Create an agent-callable workflow with required text trigger inputs.
  • Add a Dataverse step that creates a Returns row and an Outlook confirmation email.
  • Publish the workflow, attach it to the agent as a tool, and test the path end to end.

Lab instructions

Part A: One-Time Workflow Build & Agent Attachment (Tasks 1 to 8): Prerequisites: Before You Start

Complete these 25 steps once to create, configure, publish, and attach the Create return authorization workflow to your agent.

Area: PART A · ONE-TIME SETUP & BUILD

Part A: One-Time Workflow Build & Agent Attachment (Tasks 1 to 8): Task 1: Create the workflow

Complete these 25 steps once to create, configure, publish, and attach the Create return authorization workflow to your agent.

Area: PART A · ONE-TIME SETUP & BUILD

Part A: One-Time Workflow Build & Agent Attachment (Tasks 1 to 8): Task 2: Rename and describe the flow

Complete these 25 steps once to create, configure, publish, and attach the Create return authorization workflow to your agent.

Area: PART A · ONE-TIME SETUP & BUILD

Part A: One-Time Workflow Build & Agent Attachment (Tasks 1 to 8): Task 3: Define the trigger inputs (4 Required Text Inputs)

Complete these 25 steps once to create, configure, publish, and attach the Create return authorization workflow to your agent.

Area: PART A · ONE-TIME SETUP & BUILD

Part A: One-Time Workflow Build & Agent Attachment (Tasks 1 to 8): Task 4: Add a step to create the Returns row

Complete these 25 steps once to create, configure, publish, and attach the Create return authorization workflow to your agent.

Area: PART A · ONE-TIME SETUP & BUILD

Part A: One-Time Workflow Build & Agent Attachment (Tasks 1 to 8): Task 5: Send the customer a confirmation email

Complete these 25 steps once to create, configure, publish, and attach the Create return authorization workflow to your agent.

Area: PART A · ONE-TIME SETUP & BUILD

Part A: One-Time Workflow Build & Agent Attachment (Tasks 1 to 8): Task 6: Fill in the outputs to return to the agent

Complete these 25 steps once to create, configure, publish, and attach the Create return authorization workflow to your agent.

Area: PART A · ONE-TIME SETUP & BUILD

Part A: One-Time Workflow Build & Agent Attachment (Tasks 1 to 8): Task 7: Publish the flow

Complete these 25 steps once to create, configure, publish, and attach the Create return authorization workflow to your agent.

Area: PART A · ONE-TIME SETUP & BUILD

Part A: One-Time Workflow Build & Agent Attachment (Tasks 1 to 8): Task 8: Add the flow to the agent as a tool

Complete these 25 steps once to create, configure, publish, and attach the Create return authorization workflow to your agent.

Area: PART A · ONE-TIME SETUP & BUILD

Part B: End-to-End Verification & Testing (Task 9): Task 9: Test the workflow end-to-end (Uses Copilot Credits)

Run an end-to-end test in Copilot Studio Preview and verify the email and Dataverse record. Use "Reset Testing Steps" above to re-run cleanly.

Area: PART B · REPEATABLE VERIFICATION & TESTING

What you built

You built and published the Create return authorization workflow, attached it to the Customer Support Rep Assistant, and verified that it writes to Dataverse and sends a confirmation email.

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.