Hi Folks,
Have you or some one in your team accidentally deleted some your flows and want them to be back..? Then this post is for you…
There are the two ways you can restore deleted flows up to 20 days in either way…once after 20 days, even Microsoft Support couldn’t recover your flows.
In this blog post, we will see how you can recover your flows using first approach using Power Automate Management connector which is much simpler.
All you need is a button flow with two Power Automate management connector actions—List Flows as Admin and Restore Deleted Flows as Admin.
So let’s see…
I have a very simple flow as below…
But is has been failing due to some authentication issue, so I have deleted it…
Later I understood the root cause for the authentication issue, I want the flow created to be back. But no problem, you can recover your flow as below…So follow these steps to quickly get your deleted flow back…using an another flow…
Choose a manual trigger…
Next add an action, and choose an operation by searching list flows as admin.
Select your environment in the connector
Save your flow and test it…
Once your flow is successful, verify the outputs..scroll to find out the flow, check for the display name and note down the name associated.
This connector will list down all the flows created in your tenant…when you expand the raw OUTPUTS/value. Note the name which is nothing but the Guid of your flow.
Add Restore Deleted Flows as Admin action and run the flow by searching for the same as below.
Add the Restore Deleted Flows as Admin action from the Power Automate Management Connector.
In the Flow field, enter the name value ie. Guid noted from previous step ie.
9c4be0d4-b54f-4ac3-969e-01154b7f98bb
Save the flow, and test/run it.
You can note your flow is back, you can find out under My Flows but it’s disabled state.
Note:
- The steps in this article apply to both non-solution and solution flows.
- Flows that were deleted more than 20 days ago can’t be recovered. Both restore methods (PowerShell script and Power Automate Management connector), as well as Microsoft Support can’t help to restore them.
- After you restore a flow, it defaults to the disabled state. You must manually enable the flow, per your requirements.
Incase if you were good at Power Shell, you can utilize this approach.
Cheers,
PMDY