cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to restore a previous version of a flow

I have written a flow that worked, then was modified to add additional functionality, then doesn't work. Trying to revert to the way it was when it worked hasn't worked. The flow will take an unreasonable amount of time to re-write. 

 

Is there a way to access previous versions of a flow (restore a flow to version 1 from version 34, etc...)?

19 REPLIES 19
efialttes
Community Champion
Community Champion

@Anonymous 

Did you export the version of the flow you want to restore before modifying it?

https://flow.microsoft.com/en-us/blog/import-export-bap-packages/

 

If so, you can import it again

Hope this helps

 

Did I make your day? If so, mark my response as 'Solution' !!!

También escribo sobre Power Automate en este Blog y en Twitter

Anonymous
Not applicable

No. I don't export a flow after every change I make because some are very minor. My challenge is that some changes that seem benign corrupt the entire flow and it is impossible to recover without version history.

@Anonymous 

I see your point, I also experienced similar problems with complex flows, and it is really frustrating when you find no way but building them again from scratch... the only way I found to avoid is was to export flows everytime I made a change, even if it was minor, and keep a manual record of each change introduced... a procedure that I must confess it is the opposite to automation.

Sorry I cannot help, let's hope somebody else can describe any other feasible way to get back your flow!

Did I make your day? If so, mark my response as 'Solution' !!!

También escribo sobre Power Automate en este Blog y en Twitter

Hi @Anonymous ,

 

Currently, Flow does not have such a feature. If you want such a feature to be supported by MS Flow, please try to submit your suggestion in the idea forums. I believe this is a feature worth looking forward to.

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

In addition, I think that the method provided by @efialttes is also worth considering. It is used to export the configuration of the Flow completed in different time periods, so that the previous version can be used according to the date or other records.

 

Another way you might use is to use Save as to generate a copy, also do some record. If you need to use it, you could edit it directly on the basis of the copy.

Image reference:

22.PNG

 

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Not trying to be rude, but honestly that's a horrible idea.   Now you have to have storage and a place to put all the flows you export, plus a folder structure etc.  Documentation in case anyone takes over from you.

 

Versioning like Microsoft has in everything else it does is the best idea.



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
knoblar2
Regular Visitor

I have not found a way to restore it, but you can go back through the previous run history and reapply steps from that

I don't see that anyone has actually suggested this as an idea and we are running into this problem too. So here's an idea post:

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Power-Automate-Flow-Version-History/idi-p/7...

 

there is still no such feature in November 2021. So sad.

msop
Advocate I
Advocate I

Sometimes Microsoft is really great, like when they bring us such a product like Power Automate which is so **bleep** cool. And sometimes.... not, because it's like talking to a wall that will never ever move.

Pushpaindu
New Member

Steps:

 

1) Export the current flow
https://flow.microsoft.com/en-us/blog/import-export-bap-packages/

 

2) Click on my flows -> select your flow -> click on edit -> then press undo till your previous flow setup

Anonymous
Not applicable

The ideal situation would look something like this (for me). Version history with Flows is the foundation. The ability to revert to a prior version would be excellent. Additionally, in the run history, include a column for which version of the Flow this run refers to. If I can see the list of active Flows and their versions, it won't take long to see a trending problem and understand which flows might need restarted under a new version. More data on the run history would be cool too - like who initiated it, the title column (if applicable, like in a list), etc...stuff that makes forensics more efficient.

Renae_C
Regular Visitor

Hey! I might have something that helps. 
Go to My Flows > Choose the Flow > All Runs > Top left says Get .csv file. 
This should give you a .csv of all steps in your flow runs, so that you can copy code from a previous run. 

You just saved me, Renae! Thanks a million 😊

My pleasure! 😁

Wow, this can be used for audit purposes! By asking chatGPT to review the CSV!!
indhaa
Impactful Individual
Impactful Individual

Hi,

 

Where is the code in the csv file. I want to check the approval card in my flow. Want to know how the 'if expression' was set in a previous version which was working before. Is it possible get this?

Hi indhaa, 

It tends to tell you the step by step trigger/actions that it uses within the flow but doesn't appear to give the deep levels of what was coded. Mostly its giving the responses. So you can see the text that was in place previous to the condition and if that succeeds on the next step. e.g 

Trigger Input: 
},
"body": {
"text": "YES"
}

then the condition runs and then I put a compose action on each outcome. 
Outcome 1:
Compose - Status 
SUCCEEDED 
Compose Input: 
YES
Outcome 2: 
Compose _2 - Status: 
SKIPPED

Sorry I couldn't be of more help in this situation. There is a flow you can run daily (on a schedule) to save your power automate as a json file, which while give you a much deeper level and cover these sorts of things. Let me know if you are interested and I can find it for you. 

 

rbishop-etq
Regular Visitor

I know this is an older thread, but you all might be interested to see that proper versioning on cloud flows is supposed to be rolling out very soon as indicated here:
https://learn.microsoft.com/en-us/power-platform/release-plan/2023wave2/power-automate/planned-featu...

ninihen
New Member

There is a software flowstudio.app that allows users to retrieve the definitions of a Flow at the point in time of previous runs and restore from that snapshot, just with a few clicks:
Screenshot 2024-02-29 013024.pngScreenshot 2024-02-29 013521.png

More information on this page: https://learn.flowstudio.app/restore-power-automate 
 
*Declaimer: I'm part of the Flow Studio team, and this is a paid feature. Though, Flow Studio has a 14 days free trial and you can achieve what you need without needing to pay. 

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (4,631)