Skip to content

Error: The List Flows as Admin API is no longer supported. Please use the List Flows as Admin (V2) API. #6096

@IkramullahQuraishi

Description

@IkramullahQuraishi

Priority

(Urgent) I can't use the CLI

Description

I am using the m365 flow list as admin and now it has started giving me the below error: Error: The List Flows as Admin API is no longer supported. Please use the List Flows as Admin (V2) API.

Steps to reproduce

By running the below powershell script:
$todayRuns = m365 flow run list --environmentName $environment --flowName $flow.name --status Failed --triggerStartTime $previousDayDate --triggerEndTime $currentDayDate --asAdmin --output json | ConvertFrom-Json

Expected results

I think the V2 of the List Flows as Admin connector should be used in the code.

Actual results

Giving error on execution the powershell script.

Diagnostics

No response

CLI for Microsoft 365 version

v7.0.0

nodejs version

v20.10.0

Operating system (environment)

Windows

Shell

Windows PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions