pnp / cli-microsoft365

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

Update endpoint `flow list` to V2 #6108

Closed milanholemans closed 2 months ago

milanholemans commented 3 months ago

According to this blog post, we should move away from our current endpoint of listing Power Automate flows. We are currently using the v1 endpoint which is being deprecated. The v2 endpoint should be called as follows:

GET https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/{environment}/v2/flows?api-version=2016-11-01

As far as I know:

waldekmastykarz commented 3 months ago

There's some urgency behind this change, because apparently the v1 API will stop functioning altogether coming July 15

Adam-it commented 3 months ago

@pnp/cli-for-microsoft-365-maintainers if the v1 will just stop shouldn't we consider this as bug and just fix it ASAP without waiting for v8?

milanholemans commented 3 months ago

I'm not entirely sure if it will stop working at July 15. Currently, I have no trouble using it on my environment.