cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tasmiaa
Regular Visitor

Creating a SharePoint List with Columns from template or code

Hi,

 

I currently have a Power Automate that creates a new SharePoint list with 56 columns upon trigger. The trigger is a button in a Power App that I have. The problem I am facing is that the Automate takes 2-3 min to run since there are so many steps (100+) due to there being 56 columns created. This causes the user to have to wait 2-3 min after they click the button in the Power App for their SharePoint list to create. 

 

Is there a way for me to optimize of quicken the flow process using either an existing SharePoint template or some kind of code to quickly build the list?

 

Here are some screenshots from my Flow

https://ibb.co/BnwZKKT 

https://ibb.co/S5CjCKk 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Brad_Groux
Community Champion
Community Champion

There are a few ways that you can improve performance, one of those are concurrency controls:

ConcurrencyControl.JPG

 Another is to run operations in parallel branches:

AddParallelBranch.png

Another option is refactoring your logic, including utilizing things like Filter Arrays, and OData Filtering, before your apply to each loops.

Basically, if your loops are checking every single item, you have an opportunity to prune that data down before the loops. Loops are the biggest time sink. 

If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE. Want to know more? Follow @BradGroux on Twitter, and check out my Medium blog at https://msft.engineer.

 

View solution in original post

2 REPLIES 2
Brad_Groux
Community Champion
Community Champion

There are a few ways that you can improve performance, one of those are concurrency controls:

ConcurrencyControl.JPG

 Another is to run operations in parallel branches:

AddParallelBranch.png

Another option is refactoring your logic, including utilizing things like Filter Arrays, and OData Filtering, before your apply to each loops.

Basically, if your loops are checking every single item, you have an opportunity to prune that data down before the loops. Loops are the biggest time sink. 

If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE. Want to know more? Follow @BradGroux on Twitter, and check out my Medium blog at https://msft.engineer.

 

This is awesome! Thank you so much 🙂

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,963)