Skip to main content

flow recyclebinitem restore

Restores a soft-deleted Power Automate flow

Usage

m365 flow recyclebinitem restore [options]

Options

-e, --environmentName <environmentName>

The name of the environment where the flow is located.

-n, --flowName <flowName>

The name of the Power Automate flow.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks

warning

This command is based on an API that is currently in preview and is subject to change once the API reaches general availability.

info

To use this command, you must be a Global or Power Platform administrator.

When a Power Automate flow is restored, it will be automatically disabled. To make it operational again, you must enable it.

If the environment with the name you specified doesn't exist, you will get the Access to the environment 'xyz' is denied. error.

Examples

Restores a soft-deleted flow within a specific environment

m365 flow recyclebinitem restore --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --flowName 5923cb07-ce1a-4a5c-ab81-257ce820109a

Response

The command won't return a response on success.

CTRL + M