Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: flow recyclebinitem list #6139

Closed
milanholemans opened this issue Jul 12, 2024 · 1 comment
Closed

New command: flow recyclebinitem list #6139

milanholemans opened this issue Jul 12, 2024 · 1 comment

Comments

@milanholemans
Copy link
Contributor

milanholemans commented Jul 12, 2024

Usage

m365 flow recyclebinitem list [options]

Description

Lists all soft-deleted Power Automate flows within an environment

Options

Option Description
-e, --environmentName <environmentName> The name of the environment.

Examples

List all soft-deleted flows within a specific environment

m365 flow recyclebinitem list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5

Default properties

  • Name
  • Display name

Additional Info

Docs

Remarks

A Power Automate flow is soft-deleted when:

  • It's a non-solution flow.
  • It's been deleted less than 21 days ago.

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

GET https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/scopes/admin/environments/<Environment ID>/v2/flows?api-version=2016-11-01&include=softDeletedFlows

Can't really find a way to filter only the deleted flows. Worst case we have to do an in-memory filtering on properties/state = Deleted.

@milanholemans milanholemans added new feature needs peer review Needs second pair of eyes to review the spec or PR good first issue labels Jul 12, 2024
@Adam-it
Copy link
Contributor

Adam-it commented Jul 15, 2024

LGTM 👍

@Adam-it Adam-it added help wanted and removed needs peer review Needs second pair of eyes to review the spec or PR labels Jul 15, 2024
@milanholemans milanholemans self-assigned this Aug 5, 2024
milanholemans added a commit to milanholemans/cli-microsoft365 that referenced this issue Aug 6, 2024
milanholemans added a commit to milanholemans/cli-microsoft365 that referenced this issue Aug 6, 2024
milanholemans added a commit to milanholemans/cli-microsoft365 that referenced this issue Aug 6, 2024
@MathijsVerbeeck MathijsVerbeeck added this to the v9.1 milestone Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants