Publish and test

Completed
  1. In https://make.powerautomate.com, open Order Automation from My flows, select Edit, and select Publish in the designer.

    Screenshot of the designer with the Publish button highlighted.

  2. Select Test > Manually > Test. The designer now waits for the trigger to fire.

    Screenshot of the Test flow pane with Manually selected.

  3. In a new tab, go to https://make.powerapps.com, select Apps, and select Play on Northwind Orders (Model-driven). If you don't see the app, check the Shared with me tab, and confirm you are in the right environment.

  4. Select Orders > New, and select Save immediately. This assigns the order number and enables the Order Details subgrid.

    Screenshot of a new order saved with its order number assigned and an empty Order Details subgrid.

  5. In Order Details, add at least two line items totaling more than 10,000 USD. Create a new order detail row, and in the product lookup press Enter to list the existing seeded products.

  6. Select a product and set the Quantity (and adjust the Unit Price if needed). If no suitable product exists, create one inline: select New Product in the lookup, enter a name and a List Price high enough for the total, and save.

    Screenshot showing the creation of a new order detail with the product lookup listing the existing seeded products.

    Screenshot of two order detail rows under the order, together totaling more than 10,000 USD.

  7. Fill in the order fields that the approval email displays (Order Date, Payment Type, Ship City, Ship Country/Region, and Notes) and set Order Status to New.

    Screenshot of the order with all fields completed and Order Status set to New.

  8. Select Save.

Note

⚠️ Important: The flow runs each time you save an order whose status is New — changes only reach Dataverse when you save, so the order in which you fill the form doesn't matter. Complete your entries first, then save once. Saving further changes to an order that is still New runs the approval again; that's intended, so edits to a pending order are re-approved.

  1. Switch back to the designer and watch the run start. It may take up to a minute in test mode.

  2. Open the Manager mailbox, and in the approval email select Approve, then Submit.

Note

💡 Tip: If the email hasn't arrived, check the junk folder. You can also respond from the Approvals app in Microsoft Teams or from Action items > Approvals in the Power Automate portal.

Screenshot of the manager approval email with all details populated and the Approve and Reject buttons.

  1. Since the order is above 10,000 USD, open the Executive mailbox and Approve > Submit there as well.

✅ Checkpoint: The run completes successfully. In https://make.powerapps.com, open Tables > Invoice and confirm a new invoice row exists, linked to your order with the correct amount and dates. Then open the flow's run history from its details page, open the run, and inspect each action's inputs and outputs. This is how you diagnose flows when something goes wrong.

Screenshot showing the flow run with every action succeeded.

Screenshot showing the new invoice row in the Invoice table, linked to the order with the correct amount and dates.

  1. Test the rejection path (required): create one more order following actions 4–7, with a total above 1,000 USD. When the manager approval email arrives, select Reject, then Submit.

✅ Checkpoint: In the run history, the run ends at End Flow - Manager Rejected with status Cancelled. No executive email was sent, and no new invoice was created.

Screenshot of the run history showing the rejected order's run ending at the terminate action with status Cancelled.

🥳 Congratulations! You built, organized, published, and tested a complete two-tier order approval automation, including its failure path.

Challenge: extend the flow

The requester never hears the outcome. Extend the flow so they do: in the True container of each outcome condition, and alongside each Terminate, add a Send an email (V2) action that tells the requester whether the order was approved or rejected, and include the approval's Comments dynamic value so a rejection carries the approver's reasoning. See add an email action for approvals for the documented pattern.

Continue to the next module to extend this automation with Power Automate Desktop.