capabilities.work

Safely Update a Live Flow

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

Recipe · 5 steps

Safely Update a Live Flow

Apply a definition change to a running flow with a stop/update/start cycle.

  1. Read the flow before touching it, capturing the current state and definition summary so the change can be compared and the prior state restored.
  2. Deactivate the flow so its trigger stops firing while the definition is being replaced.
  3. Patch the flow with the new display name and definition. The flow is left Stopped by this request; the next step is what brings it back up.
  4. Reactivate the flow now that the new definition is in place.
  5. Read the flow back and assert it is Started, so the update never silently leaves a production flow deactivated.
What you'll need to have ready
  • environmentName: The name of the environment holding the flow.
  • flowName: The name or ID of the flow to update.
  • displayName: The new display name for the flow.
  • definition: The updated workflow definition to apply to the flow.
For your developer

Arazzo workflow microsoft-power-automate:safe-update-flow, 5 operations: getFlow → turnOffFlow → updateFlow → turnOnFlow → getFlow. Specs on APIs.io.