Introduction

Completed

Overview

In Module 2, you built Order Automation: a cloud flow that routes new orders through a two-tier approval and creates an invoice. But orders don't only arrive through the Northwind Orders app: some come in as files from legacy systems that have no connection to Dataverse. In this module, you build a desktop flow with Power Automate for desktop that reads a local order file and creates the order and its line items in Dataverse. This feeds the same approval process you built in Module 2, launched with a single keyboard shortcut.

Learning objectives

By the end of this module, you will:

  • Build a desktop flow with Power Automate for desktop.
  • Use Dataverse connector actions inside a desktop flow to create and update rows.
  • Read and loop over a local CSV file.
  • Parse a connector's JSON response to reuse a created row's identifier.
  • Trigger a desktop flow with a keyboard shortcut.
  • Feed an existing cloud-flow automation from robotic process automation (RPA).

Prerequisites

This module continues Modules 2 and 3. You need:

  • Modules 1 and 2 completed in your development environment: the Order Automation cloud flow built, published, and tested, and the Order Automation solution created.

  • A Windows machine with Power Automate for desktop installed. It comes preinstalled with Windows 11; on Windows 10, install it from Microsoft. Sign in with the same lab account you used in Module 2.

  • A Power Automate Premium license or trial. The Dataverse actions used in this module are premium connector actions, which require the attended RPA entitlement — the free developer plan alone doesn't cover them.

    🔧 Setup check: If Power Automate for desktop or the portal prompts you about premium features, select the option to start a free trial and continue with the lab.

Business use case

Scenario: Not every Northwind Traders order is entered in the Orders app. A regional partner still sends orders as files — data that today someone retypes by hand, and that never enters the approval process until they do.

Solution: A desktop flow that reads the order file from the local machine and creates the order and its line items directly in Dataverse. The approval automation from Module 2 takes over from there: one governed process, whether an order arrives through the app or from a legacy file.

Names used in this lab

Power Automate for desktop actions keep their built-in names; instead, you name the flows and the variables they produce. The f prefix marks variables this flow produces, so they're easy to spot in expressions.

Component Name
Desktop flow Import Legacy Orders
CSV table variable fOrdersCSV
Loop item variable fOrderItem
Create-order response fResponse
Parsed response object fObject
Order ID fOrderId