pnp / cli-microsoft365

Manage Microsoft 365 and SharePoint Framework projects on any platform
https://aka.ms/cli-m365
MIT License
901 stars 318 forks source link

New command: `flow recyclebinitem restore` #6140

Open milanholemans opened 1 month ago

milanholemans commented 1 month ago

Usage

m365 flow recyclebinitem restore [options]

Description

Restores a soft-deleted Power Automate flow

Options

Option Description
-n, --flowName <flowName> The name of the Power Automate flow.
-e, --environmentName <environmentName> The name of the environment where the flow is located.

Examples

Restores a soft-deleted flow within a specific environment

m365 flow recyclebinitem restore --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --name 3989cb59-ce1a-4a5c-bb78-257c5c39381d

Default properties

No response

Additional Info

Docs

Remarks

When you restore a flow, it will be automatically disabled. To make it operational again, you must enable it.


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


(instead of note, use info admonition)

[!NOTE] To use this command, you must be a Global or Power Platform administrator.


API request

POST https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/scopes/admin/environments/<Environment name>/flows/<Flow name>/restore?api-version=2016-11-01
Adam-it commented 1 month ago

LGTM 👍