cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChrisGarty
Employee
Employee

Transition to List Flows as Admin V2 action from deprecated List Flows as Admin action on the Power Automate Management connector, along with associated APIs

Hi community! 

 

What's changing?

The List flows as Admin action on the Power Automate Management connector has been deprecated in favor of the List Flows as Admin (V2) action. The List Flows as Admin (V2) action can list all flows in an environment. The V2 action and its backing API has higher performance, since it returns only the identifying information about the flow. To accomplish this performance increase, the flow definition and some other metadata isn't returned. If the flow definition or additional metadata is needed, then a subsequent call can be made to the Get Flow as Admin action.

The Get-AdminFlow PowerShell cmdlet is also being updated to call the V2 List Flows API instead of the V1 List Flows API. This change will remove support for the CreatedBy filter.

The underlying V1 List Flows API is also being deprecated. The Center of Excellence (CoE) Starter Kit was updated to call the V2 List Flows API instead of the V1 List Flows API and that change was in the May 2023 release.

 

Why is this change happening?

The V2 API has higher performance, since it returns only the identifying information about the flow. The transition away from the V1 API is being made to minimize future disruptions to customer services.

 

How do I adjust to the change?

If you don't use the Center of Excellence (CoE) Starter Kit, the List flows as Admin action on the Power Automate Management connector, or the Get-AdminFlow PowerShell cmdlet, then you won't need to make any changes.

Connector actions: To take advantage of the increased performance of the V2 action and move off the V1 action, simply transition to using the List Flows as Admin (V2) action instead.

PowerShell: The Get-AdminFlow PowerShell cmdlet has been updated in version 2.0.165. You can update your copy of the Power Platform PowerShell cmdlets using Update-Module -Name "Microsoft.PowerApps.Administration.PowerShell". You can check your version using Get-Module -Name "Microsoft.PowerApps.Administration.PowerShell".

CoE Starter Kit: Update to the latest release of the CoE Starter Kit.

 

How do I find connector actions?

If you aren’t sure which flows might be calling the List flows as Admin action, then you can create a flow to list those flows. The List flows as Admin action has an operation ID of “ListFlowsInEnvironment”, so call the List Flows as Admin (V2) action, iterate over those flows calling the Get Flows as Admin action for each, parse JSON on the “actions” result, and then look for a “swaggerOperationId” of “ListFlowsInEnvironment”.

 

What's the timeline?

Connector design-time: Enforcement of the connector action deprecation at design-time is currently happening, so new flows will need to use the List Flows as Admin (V2) action. The design-time change finished rolling out to production environments 6/15.

Runtime: In August, we'll evaluate migration progress and start enforcing the deprecation at runtime, so that calls to the backing API may begin to fail at runtime. In time this will affect the old PowerShell cmdlet versions, old CoE Starter Kit versions, and calls to the deprecated List flows as Admin action.

 

What if I miss something?

We'll be watching usage levels of the deprecated List flows as Admin action, and its backing API, and we will reach out to customers that continue to have significant usage by the end of July.

 

Where can I read more?

You can read the latest guidance in the Administer environments and Power Automate resources documentation.

 

Who can I contact for more information?

Please ask any questions that you may have here and we'll get you answers. Thanks!

 

*** Update October 19, 2023 *** 

Thanks to community feedback, List Flows as Admin V2 + Get Flow as Admin APIs should now be functionally equivalent to List Flows as Admin V1 API.

List Flows as Admin V2 API is now:

- Working correctly in GCC

- Returning createdBy, createdTime, and lastModifiedTime

Get Flow as Admin API is now:

- Returning flow definition

Module Microsoft.PowerApps.Administration.PowerShell updated

 

We are going to start failing a small number of calls to the V1 List Flows as Admin API to encourage migration to the V2 API, the V2 action, and the latest PowerShell cmdlets module. For now, the failures will randomly occur on less than 1% of calls to the V1 API. 

This is the error that would be returned to calls to the API directly or via the connector:
The List Flows as Admin API is no longer supported. Please use the List Flows as Admin (V2) action
And this is the error message that will be returned from the PowerShell cmdlet:
The List Flows as Admin API used by this PowerShell cmdlet version is no longer supported. Please update to the latest PowerShell cmdlet using Update-Module

This change will roll out as RP/2310.3: Preview ~Oct 17, Canada ~Oct 24, Early regions ~Oct 25, Asia ~Oct 27, Europe ~Oct 31, North America ~Nov 2, GCC ~Nov 6.

If you encounter these error messages, then please take the remediation actions described.

 

*** Update February 1, 2024 *** 

The transition to the V2 API is progressing well and we continue to advance the process of randomly failing calls to the V1 List Flows as Admin API as a reminder to move to the V2 API. 

An update to fail 20% of calls is releasing now as RP/2401.4: Preview ~Jan 23, Canada ~Jan 30, Early regions ~Jan 31, Asia ~Feb 2, Europe ~Feb 6, North America ~Feb 8, GCC ~Feb 12.

An update to fail 40% of calls will release out as RP/2402.1: Preview ~Feb 6, Canada ~Feb 13, Early regions ~Feb 14, Asia ~Feb 16, Europe ~Feb 20, North America ~Feb 22, GCC ~Feb 26.

Updates to move the failure rates up are planned for the near future:

- 60%: Canada ~Feb 27, North America ~March 7

- 80%: Canada ~March 12, North America ~March 21

- 100%: Canada ~March 26, North America ~April 4

These dates are subject to change, but can be used as a guide. If you encounter the error messages detailed above, then please take the remediation actions described.

 

*** Update April 22, 2024 ***

Calls to the List flows as Admin API are now fully deprecated via the Power Automate Management connector or PowerShell. There is some direct use of the API from other clients, so we will begin failing those calls as well to complete full deprecation of the API by July 15th.

67 REPLIES 67
max81
Impactful Individual
Impactful Individual

Hi @ChrisGarty , hi all,

 

My results so far:

I've compared the results of the old action and the new action.

Important info that is missing for our processes: the "creator" information and the description.
If this information is added, we can live with that change.
It would be great if userType information is also added.

Last not least, the "flowFailureAlertSubscribed" information seems to be wrong. (V2 shows always "none") - What is the purpose of the "Expand Suspension Info" setting for this action? I cannot see any different output.

 

Please find here a screen comparison of the result for one flow.

18-07-2023_15-25-01.png

 

Finally, if the description and creator info is not added, we need to call also the "get flow as admin" action for every flow, so the runtime gets really bad. I checked it for some of our environments.

From old action to new V2 action:

• 76 flows: from 2 seconds to 1 minute
• 222 flows: from 6 seconds to 5 minutes
• 3743 flows: from 2 minutes to 1 hour

 

Thanks for the analysis.

 

Did you open a support case for this too?

max81
Impactful Individual
Impactful Individual

@Nazul : no, I didn't open a support case for that.

I rely here on the statement of @ChrisGarty :


@ChrisGarty wrote:

[...] 

What if I miss something?

We'll be watching usage levels of the deprecated List flows as Admin action, and its backing API, and we will reach out to customers that continue to have significant usage by the end of July.

[...]

Who can I contact for more information?

Please ask any questions that you may have here and we'll get you answers. Thanks!




LoryanStrant
Regular Visitor

Sorry but this timeframe for such a feature deprecation is WAY too short.

I have a solution deployed in a number of sizeable customers (universities, utilities, mining, etc.) totalling easily over 1mil users where this action is called on a weekly basis. We're not scheduled to update the installations until October as we've only just deployed our July update.

Unfortunately it's not practical to simply update the solution, because the new action doesn't return a key piece of metadata required: maker ID.

And given the size of some of these orgs and the amount of workflows in there, having a workflow that now has query every single workflow just to get the maker ID would make the whole process run drastically slower than any time savings gleaned from reduced metadata in the V2.

 

And the solutions above don't include the condsiderable number of CoE deployments we'll also have to update - which we do on a quarterly basis.

 

Please consider delaying this as the communication and notice period is insufficient for such a critical action.

Nazul
Advocate I
Advocate I

@ChrisGarty any updates?

Hi @LoryanStrant, by "maker ID" do you mean the CreatedBy value? We are working on bringing that back. 

Hi @max81 ,

Thanks for the great analysis.

1. After popular demand here, we are working on bringing back the CreatedBy value 🙂

2. Description isn't a top-level field that we have returned in the past. DisplayName is returned. What is the scenario you have for Description?

@Nazul , older PowerShell cmdlet libraries will still work for now. We are working on bringing the CreatedBy value back. 

Description hasn't been returned as a top-level value in the past. What is your scenario that requires a Description?

That's exactly what I'm after.

What's your timeframe for bringing it back?

That's the critical piece for my requirement in our customer deployments. 

Yes, you are right. My bad. Description was never included and actually we do not need it.

 

I was able to somehow mitigate the memory issue and during the weekend our processes were stable. However, the impact regarding the time it takes because of the CreatedBy attribute being missing is still there.

 

21321
Regular Visitor

Hi @ChrisGarty, what we do if we need the Definition of the flows? Get Flow as Admin doesn't return Definition (only Definition Summary) and Get Flow can't loop through all flow in the tenant.

CreatedBy will be available by mid August. Changes are rolling out now. PowerShell support for CreatedBy is already available. I'll come back with a more specific date when I have one.

@ChrisGarty I think I don't get it right. CreatedBy will be available by mid August in the Power Automate Management connector, but via Get-AdminFlow (PowerShell module) should be already available?

 

Because I just tried to get it and it's not there yet.

Nazul
Advocate I
Advocate I

@ChrisGarty I see there's a new version of the PowerShell module (2.0.170) which adds back the -CreatedBy parameter to Get-AdminFlow... however, the issue is not with that parameter but the output.

 

This new version is still returning null in CreatedBy property when requesting all flows in a environment.

 

In Microsoft.PowerApps.Administration.PowerShell.psm1 code, we can see it is using a different endpoint when using Get-AdminFlow for an specific flow than when requesting all flows in an environment.

 

/providers/Microsoft.ProcessSimple/scopes/admin/environments/{environment}/flows/{flowName}

 

vs

 

/providers/Microsoft.ProcessSimple/scopes/admin/environments/{environment}/v2/flows

aafr
Regular Visitor

Hello,

@ChrisGarty I have the results after running the PS:
Target connector was shared_flowmanagement and target action was ListFlowsInEnvironment
Target flows actions count: 0
Total flows actions count: 971
Total cloud flows count: 248
Script execution time: 00:43:43.9001275

 

Do I need to do any action? Please let me know
Thank you

aafr
Regular Visitor

Your instruction is vague. Can you clarify the following:

How do I find connector actions?

If you aren’t sure which flows might be calling the List flows as Admin action, then you can create a flow to list those flows. The List flows as Admin action has an operation ID of “ListFlowsInEnvironment”, so call the List Flows as Admin (V2) action, iterate over those flows calling the Get Flows as Admin action for each, parse JSON on the “actions” result, and then look for a “swaggerOperationId” of “ListFlowsInEnvironment”.

And how can I get it?
Also I am getting the below results after the PS:

Target connector was shared_flowmanagement and target action was ListFlowsInEnvironment
Target flows actions count: 0
Total flows actions count: 971
Total cloud flows count: 248
What kind of action I need to take?  Please me know as soon as you can.

 

Thank you

max81
Impactful Individual
Impactful Individual

Hi @ChrisGarty,

the description is only listed with "List Flows as Admin" if a description is maintained. Please check my attached screenshot in my last post.
Our compliance process for all Flows is based on these flows. And we more or less force our users to maintain a description.

@aafr , "Target flows actions count: 0" should mean no work is needed 🙂  

@aafr , PowerShell is the easiest mechanism for inspecting all your flows. We created it so customers like yourself could simply copy, paste, and run the script. "Target flows actions count: 0" should mean no work is needed.

@Nazul, the change to show CreatedBy requires a backfill change that is rolling out. If you aren't seeing it by 8/15, then we should investigate...

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Top Kudoed Authors
Users online (3,759)