Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Outlook
    • Planner
    • Power Apps
    • SharePoint
    • Teams
  • Triggers
  • Ready to use solutions
    • Approval Process Template
    • Task Delegation App
    • The Ultimate Power Automate expressions cheat sheet
    • Power Automate HTTP requests to SharePoint cheat sheet
    • Power Automate HTTP requests to Graph API cheat sheet
  • ABOUT ME
  • Get help with your flow
  • POWER PLATFORM SERVICES
Menu

How to automatically backup your Power Automate flows

Posted on February 4, 2024February 11, 2024 by Tom

“Is there some way to keep previous versions of Power Automate flows, a chance of restoring a backup if something goes wrong?”


When you’re designing a Power Automate flow, you’re working with the only version of the flow that exists. Whatever you do, it stays in there. Except the small ‘Undo’ button, there’s no way to revert any changes.

That can be problematic. What if you, or somebody else, do changes that break the flow? How do you retrospectively see what was changed? How do you go back to the previous version of the flow?

Create your own backups

Even though there’s no flow versioning, you can add a similar functionality by yourself. You can create a scheduled flow that’ll run on regular basis and ‘backup’ all the flows.

Note: by ‘backup’ I mean exporting the flow JSON definition.

Firstly, list your flows on an environment with the ‘List My Flows’ action from the Power Automate Management group. It’ll give you some basic information like the flow id (called Flow Name), flow name (called Flow Display Name), etc.

Once you have all the flows basic information, get the whole flows one by one using ‘Get Flow’ and their id (called Flow Name).

Power Automate backup flows

Take the whole result and store it in a JSON file, e.g. in a SharePoint document library. This will be your backup.

Power Automate backup flows

How to use this backup

As already noted, the backup is a JSON definition of the flow. It’s not something you can take and restore by pressing a button, but you can use it to find the changes. Any code editor, e.g. Visual Studio Code, will reformat the output as a JSON, making it easier to read and understand. It’ll also allow you to compare an older file with a newer one, highlighting the differences.

The part you’re most interested in is the “actions”, with all the flow action definitions. If there’re differences, there was probably some change in the flow. I’m adding ‘probably’ because sometimes it’s just a different line order.

Power Automate backup flows

The property names are quite understandable so it shouldn’t be a big issue to understand what changed.

Once you identify the changes, you can go back to the live flow in the designer and adjust it accordingly. If it’s just a difference in an expression, you can easily replace it. If it’s a whole set actions missing it’ll be a bit more work though.

Update: there’s now also an article explaining how to restore a flow from such backup.

Summary

Power Automate has some potentially interesting actions in the Power Automate Management group, allowing you to restore deleted flows, backup flows, and probably many more. This article explains quite a basic way of a flow backup, it still needs you to understand the JSON structure and all recoveries are done manually, but it’s still better than having no backup at all. And I feel there might be a possibility that such JSON export could be used to create or update a flow later…


πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

3 thoughts on “How to automatically backup your Power Automate flows”

  1. Stefan says:
    February 7, 2024 at 9:41 pm

    Great idea Tom!
    Meanwhile I found a post to this topic – this article explains how to backup/restore a flow:
    https://blog.atwork.at/post/backup-and-restore-a-flow-with-another-flow

    Reply
  2. Bill says:
    January 21, 2025 at 5:52 pm

    Hi.. Thank you for this excellent post. I was able to rebuild it myself based on the information (I switched of the new designer).

    Question: I have also several flows which were shared with me. How can I include shared flows in this back-up procedure?

    With kind regards, Bill

    Reply
    1. Tom says:
      February 23, 2025 at 12:44 pm

      Hello Bill,
      try to check the output of the ‘List my flows’ action if it contains the shared flows too. If not you might need to use the ‘List Flows as Admin’ action to get all of them.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

Working on an Approval process?

Use the Approval Process Template and the Task Delegation App to skip the hard part and deploy a fully functional approval solution on a SharePoint list in minutes! And then the next one, and the next one...

Approval Template Preview ✨ Learn more ✨

Turn ideas into flows with ease!

Grab the complete Power Automate Cheat Sheet Bundleβ€”everything you need to master expressions, SharePoint HTTP calls, and Graph API in Power Automate.

Cheat Sheet Bundle Preview ✨ Get the Cheat Sheets

Didn't find what you were looking for?
Need to adjust a solution to fit your needs?
Or would you just like to get an assistance from somebody with thousands of hours of experience with Power Automate?

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2025 Let's POWER Automate | Theme by SuperbThemes