Skip to main content

How to Save a Draft and Publish a Flow in Power Automate

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

In the new designer, a flow in a solution has two buttons where there used to be one: Save draft keeps your changes, finished or not, and Publish makes them the version that runs. Until you publish, the flow keeps running its last published version.

Microsoft's drafts and versioning article puts it this way: Save a draft of a flow whenever you want, even with errors. And: When you're ready for changes to a flow to have an effect at runtime, the flow can be published. It also says The drafts and versioning feature set is available only for solution-aware cloud flows.

The example is the approval flow of the Overtime Timesheet app, built over an afternoon and published at the end.

Prerequisites​

Step 1: Save Drafts as You Build​

Save draft is in the toolbar, next to Test and Publish:

The new designer's toolbar with Save draft, Test, Publish, Copilot and the New designer toggle switched on and outlined, above the canvas

Each save shows a green banner, and the header says Draft:

The designer with Overtime Approval • Draft in the header and the banner We saved your draft flow. You can test and run it after you publish.

The banner's second sentence matters: a draft doesn't run. Microsoft's article answers Can drafts be tested? with Not at this time. Currently, flow changes need to be published and runnable to be tested.

Step 2: Check, Then Publish​

Run Flow checker first (How to Check a Flow for Errors with Flow Checker in Power Automate), then select Publish.

If publishing finds a problem, a red banner says what, and the flow stays a draft. The approval flow's first publish stopped at an expression:

The toolbar with Overtime Approval • Draft and a red banner reading The input parameter(s) of operation 'Ask_the_manager' contains invalid expression(s). Fix invalid expression(s) for the input parameter(s) of operation 'Ask_the_manager'.

Fix what it names and publish again. Here, two problems in action names needed fixing, one per publish (Fixed: "The input parameter(s) of operation contains invalid expression(s)" in Power Automate and Fixed: "The provided workflow run action name has these invalid characters" (InvalidWorkflowRunActionName) in Power Automate).

When it works, the banner is green, and the header says Published:

The designer with Overtime Approval • Published in the header and a green banner reading Your flow is ready to go. We recommend you test it., above the published flow

From then on, the flow runs the published version, and its next save is a new draft.

Common Mistakes​

MistakeWhat happensDo this instead
Saving a draft and waiting for a runDrafts don't runPublish
Testing a change before publishing itMicrosoft's article says drafts can't be testedPublish, then test
Leaving a draft unpublished after a fixThe old version keeps runningPublish the fix

Troubleshooting​

SymptomLikely causeFix
My change has no effectIt's only in a draftPublish
A red banner after PublishSomething publishing checks forFix what the banner names
No Save draft buttonThe flow isn't in a solution, or it's the classic designerOpen the solution flow from My flows

FAQ​

Can I go back to an earlier version?​

The toolbar has Version history, part of the same drafts and versioning features. I didn't need it for this flow.

Does publishing turn the flow on?​

The approval flow was on, and stayed on after each publish. Publishing changes which version runs.

Conclusion​

Save draft keeps your work, even unfinished; Publish makes it the version that runs. Read the banner after each publish: green means it's live, red names what to fix.

Additional Resources​