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
Super User II
Super User II

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
Super User II
Super User II

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

This is awesome! Thank you so much 🙂

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (34,265)