Trigger a Power Automate Desktop flow from another flow


  • You need the on-premises data gateway for your device to have the desktop flow triggered by Power Automate.

    The gateway is an enterprise-grade secure connection between Power Automate and your device (where your UI flow runs). Power Automate uses the gateway to access your on-premises device so that it can trigger your UI flows from an event, schedule, or button.

  • A work or school account.


    You must use the same work or school account to set up the gateway, to sign into Power Automate, and to log into your Windows device.

  1. Go to and sign in with your credentials. In Power Automate, select My flows. Select + New flow, and from the drop-down select Instant cloud flow.

    my flows instant blank

  2. Enter a name for the cloud flow, otherwise one will be automatically generated. Select Manually trigger a flow and then select Create.

    manually trigger flow

  3. Select + New Step.

    new step

  4. In the Choose an action prompt search field, enter power automate desktop. Under Actions, select Run a flow built with Power Automate Desktop.

    action search

  5. In the action parameters, set Run mode to Attended - Runs when you're signed in, and in the desktop flow drop-down select Create a new desktop flow.

    run desktop flow power automate desktop action properties

  6. Enter a name for the desktop flow and select Launch app.

    build desktop flow dialog

  7. A message from the browser may appear, asking whether to allow to open an application. Allow this action to continue to Power Automate Desktop.

    browser open application

  8. The Power Automate Console creates a desktop flow with the selected name and opens the flow designer to edit the new flow.

    flow designer blank

  9. Optionally, create Input/output variables to pass data back and forth from Power Automate to Power Automate Desktop. In the Variables pane, select + to add an input or output variable.

    new input output var

  10. To create an input or output variable, the Edit variable dialog box will require filling in the fields as follows:

    • Variable type—input or output
    • Variable name—the name of the variable in flow designer
    • Default value—the value which the variable holds if none is assigned
    • Data type—the type of the variable (integer, string, datetime, and so on.)
    • External name—the name used outside flow designer. This name appears in Power Automate.
    • Description—a description of the variable. This mandatory field appears in Power Automate

    add new input var

  11. Create an Input variable to pass data from Power Automate to Power Automate Desktop. The variable can be used anywhere in the desktop flow.

  12. To pass data from Power Automate Desktop to Power Automate, create an Output variable.

  13. Back in Power Automate, any input variables appear as fields in the UI action.

    run desktop flow power automate desktop action properties 2

  14. Output variables from Power Automate Desktop can be used in other Power Automate actions.


Can you tell us about your documentation language preferences? Take a short survey.

The survey will take about seven minutes. No personal data is collected (privacy statement).