It could happen to any of us. We delete a flow in Power Automate and then there is this oops moment. How do I restore deleted flows?

My flow before I deleted it
My flow before I deleted it

Restore Deleted flow as Admin

Within the Power Automate for Admins connector there is an actions called Restore Deleted flow as Admin action. This action lets you restore flows that you have deleted. Now one of the annoying details is that you have only 5 flows to select.

The flow that I want to restore is not listed unfortunately. Further down this post I will look at how to make sure that your flow is listed.

My flow is not appearing in the dropdown
My flow is not appearing in the dropdown

This is a bit of a pain.

Now after a bit of testing I found that the GUID of the deleted flow could be used to make the Restore Deleted Flow as Admin action work.

Restore a flow using a GUID
Restore a flow using a GUID

Now I’ve got the GUID of the flow available but what if I haven’t got the Guid available? It is quite likely that you would have the GUID of every flow that you may accidentally delete. What do I do?

Get the flow GUID

Now, if you find that you haven’t got that GUID. There may be some ways of getting that GUID back. But there are better ways to go about this.

Restore deleted flows

Now depending on how you created your flow, your flow will be listed in that dropdown or not.

My flow now appears in the dropdown
My flow now appears in the dropdown

When you create a flow you should of course always add the flow to solutions. The above dropdown is fed by the Process table in Dataverse and all modern flows are listed. Now either the flow can be selected from the dropdown or the ResourceId can be found in the Process table.

Process table in Dataverse
Process table in Dataverse

Get Power Automate to find the flow name

First we add a List Flow as Admin step to our flow. This will now give us a list of flows that we could restore.

Restore deleted flows in Power Automate
Restore deleted flows in Power Automate 1

Now we just add a condition and select the flow by using the name of the flow that we want to restore.

Restore deleted flows in Power Automate
Restore deleted flows in Power Automate 2

Then finally we update the Restore Deleted Flow action to include the Flow Name. This can be selected from the Dynamic content.

Restore deleted flows in Power Automate
Restore deleted flows in Power Automate 3

So in this post some ways of restoring you deleted flow. More Power Automate tips can be found in my Power Automate User Guide


Discover more from SharePains

Subscribe to get the latest posts sent to your email.

Related Posts

One thought on “Restore deleted flows in Power Automate

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SharePains

Subscribe now to keep reading and get access to the full archive.

Continue reading