Steps to Create and Execute the Flow
1. Manually Triggered Flow
- Open Power Automate and then create a new flow with a Manual Trigger.
- This will be the recovery process.
2. List Flows as Admin Action
- Add the List Flows as Admin action by using Power Automate Management Connector.
- Configure this action to fetch all the flows within the environment.
3. Save and Execute the Flow
- Save your flow and then execute the flow.
- When run, this activity will output the information of all flows and their raw data in JSON.
4. Locate the Deleted Flow
- Look for the output of the List Flows as Admin action.
- Find the flow you would like to recover by name (the ID of the flow is shown in the raw output).
5. Copy the Flow ID
- Copy the name and value of the flow to be restored. It is this value that corresponds to the Flow ID, which should be used to restore the flow.
6. Modify the Flow to Add the 'Restore Deleted Flow as Admin' Action
- Reopen the manually triggered flow and insert the Restore Deleted Flow as Admin action
- Insert the copied Flow ID into the appropriate field for this action
7. Execute the Flow
- Save and re-execute the flow.
- Once it is executed, the deleted flow will be restored in a Disabled state.
What to Do After Restoration?
- Go to your Power Automate portal and find the restored flow.
- Enable the flow, if necessary, by editing its settings and making sure all the connections and triggers are configured correctly.
Summary
This technique simply provides a reliable method of retrieving deleted flows. It is advisable to monitor and back up your flows regularly to prevent data loss and easy recovery in the future.