cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
balderdash
Level: Powered On

Help filtering a SharePoint list on an array

I've got this working, but it takes about 4 hours to run because it's built so inefficiently. 

Basically - I have a SharePoint calendar with the full company's PTO for the next 6 months (Calendar A). I need to sync it with a separate calendar that only has about 30 employees in it (Calendar B). 

My current process is to get items from both calendars, delete everything in Calendar B, then do a nested "apply to each" - so each item from Calendar A is checked against an array of Employee IDs to see if they match. If yes, then I rebuild Calendar B from scratch.

It would clearly be a better solution to filter Calendar A by the array of IDs before running the Apply to each loops, but I can't figure out how to do that! Can I use the Filter Array action? If so, how?

 

Annotation 2019-08-20 120003.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Help filtering a SharePoint list on an array

 

Hi @balderdash ,

 

I don't quite clear the specific configuration and function of each action, so I can't give reasonable optimization suggestions for the time being. Please provide more details.

Your Flow configuration contains multiple Apply to each, you could consider setting Degree of Parallelism to provide execution efficiency.

You could try to do the following settings for the three Apply to each:

5.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Help filtering a SharePoint list on an array

 

Hi @balderdash ,

 

I don't quite clear the specific configuration and function of each action, so I can't give reasonable optimization suggestions for the time being. Please provide more details.

Your Flow configuration contains multiple Apply to each, you could consider setting Degree of Parallelism to provide execution efficiency.

You could try to do the following settings for the three Apply to each:

5.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 368 members 4,993 guests
Please welcome our newest community members: