capabilities.work

Provision and Activate a Flow

A 5-step recipe with Microsoft Power Automate. We can help you get access.

Recipe · 5 steps

Provision and Activate a Flow

Create a cloud flow, activate it, and verify it is running.

  1. List accessible environments to confirm the caller can provision into the target environment before creating anything.
  2. List the connections in the environment so the connection references the new flow declares can be checked against what actually exists. Provisioning a flow against a missing connection is the most common cause of a flow that is created but
  3. Create the flow in a Stopped state so the definition can be provisioned without the trigger firing before activation is intended.
  4. Activate the newly created flow so its trigger begins listening.
  5. Read the flow back and confirm it reports the Started state, proving the provision-and-activate sequence completed rather than assuming it did.
What you'll need to have ready
  • environmentName: The name of the environment to create the flow in.
  • displayName: The display name for the new flow (e.g. "Daily Report Automation").
  • definition: The workflow definition of the flow, containing its triggers and actions.
  • connectionReferences: The map of connection references the new flow needs, keyed by connection reference logical name.
For your developer

Arazzo workflow microsoft-power-automate:provision-flow, 5 operations: listEnvironments → listConnections → createFlow → turnOnFlow → getFlow. Specs on APIs.io.