cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
balderdash
Frequent Visitor

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
v-bacao-msft
Community Support
Community Support

 

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
v-bacao-msft
Community Support
Community Support

 

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

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

Users online (47,910)