Microsoft Power Automate

Microsoft Power Automate is a desktop and cloud automation tool.

Trigger an Instant Cloud Flow from PixieBrix

πŸ’² Using request/response steps in Power Automate requires a Premium Power Automate Account

  1. Create an Instant cloud flow

  2. Select β€œWhen an HTTP request is received” as the trigger

  3. Expand the β€œWhen an HTTP request is received” step

  4. Set β€œWho can trigger the flow” to Anyone

  5. Save the flow

  6. Copy the URL in HTTP POST URL

  7. In the PixieBrix Page Editor, add the HTTP Request brick

  8. Set the following configuration fields:

    • URL: the URL from the HTTP POST URL field above

    • Method: POST (Power Automate defaults to POST)

    • JSON Data: the request body

Returning a Response to PixieBrix

  1. Add a β€œResponse” step to the flow

  2. Set the Status Code field to 200 to indicate a successful request/response. Information on HTTP status codes is available here

  3. Set the Body to the response you want to return:

Other Cloud Flow API Operations

πŸ›‘οΈ These APIs require authenticating with Microsoft Dataverse/Power Automate

See Microsoft’s Work with Cloud Flows using Code documentation

Running Desktop Flows from PixieBrix

Running From Instant Cloud Flows

  1. See Section β€œTrigger an Instant Cloud Flow from PixieBrix” above

  2. Add a β€œRun a flow built with Power Automate for desktop” step to the flow

Running Directly using a Run URL

  1. Find the Run URL in the Flow’s Properties

  2. Copy the Run URL from the properties blade:

  3. In PixieBrix, add an β€œOpen a tab” brick

  4. Paste the copied URL into the URL field

  5. Optional: you can disable the browser confirmation when opening custom URL schemes: Integrate with Desktop Apps via Custom URL Schemes

Triggering directly via API

πŸ›‘οΈ These APIs require authenticating with Microsoft Dataverse/Power Automate

See Microsoft’s Trigger a desktop flow run developer documentation

Last updated