Create the desktop flow

Completed
  1. Open Power Automate on your Windows machine and sign in with your lab account.

    đź”§ Setup check: Select Settings and confirm the account and environment match Module 2. A desktop flow signed in as anyone else creates orders the approval flow silently ignores, because its trigger uses User scope.

  2. Select New > Flow.

    Screenshot of the New menu in the Power Automate console with Flow selected.

  3. In Flow name, enter:

    Import Legacy Orders
    
  4. Leave Power Fx enabled switched off, leave the other options at their defaults, and select Create.

Important

⚠️ Important: Every expression in this lab uses the %variable% notation, which only works when Power Fx enabled is off. Enabling Power Fx replaces this notation with a different formula language—a per-flow choice made at creation—so if you switch it on, none of the expressions below will work.

Screenshot of the Create a flow dialog with the flow name entered and Power Fx enabled switched off.

Selecting Create opens the flow designer in a new window: an Actions pane on the left to search for actions, a canvas in the middle where actions run top to bottom, and a Copilot pane on the right. The pane this lab uses on the right is Variables. It isn't shown by default, so select the {x} (Variables) icon on the right edge to open it. It lists every variable the flow produces. The console stays open in the background. You return to it later.

Screenshot of the flow designer window with the Actions pane, the empty canvas, and the Variables pane opened via the icon on the right edge.

The flow you build next reads the file first, creates the order without a status, and sets the status to New as its final action. In the app, the approval flow fired when you saved the completed order with status New; in a desktop flow, every action writes to Dataverse immediately, so that final status update plays the role of the save. It's the modification that fires the approval flow.