cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (48,038)