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.
- Read the flow before touching it, capturing the current state and definition summary so the change can be compared and the prior state restored.
- Deactivate the flow so its trigger stops firing while the definition is being replaced.
- 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.
- Reactivate the flow now that the new definition is in place.
- 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.