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

Recurrence monthly on 11 Business Day exclude weekends and holidays

Hi guys,

I'm in the middle of building a flow but I'm kinda stuck at the moment. 

I built 2 lists on Sharepoint

 

List 1: Report

  • Report Name
  • Specified Date
  • Next Refresh (this field will be updated by flow)

 

List2: Public Holiday Schedule

  • Holiday
  • Holiday Date

Then I created a flow in List 1 using 'Specified Date' column

This is all I had built in the flow

  1. Recurring
  2. Get-Item from Sharepoint List1
  3. Variable ---> Compose
    • Expression: look for 'Specified Date' column

My question is how do I recur the Specified Date every month on the 11 business days excluding weekends? Suppose the holiday day falls on Dec 16th, I want it to skip 16th and count 17th as 11 business day.

 

I really appreciated your help

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Re: Recurrence monthly on 11 Business Day exclude weekends and holidays

Hi @Stuznet 

I've discovered the solution to this issue for another user here on the community, and I have written a blog article that explains the solution in detail. Check it out here:
https://manueltgomes.com/microsoft/flow/find-next-business-day/

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Recurrence monthly on 11 Business Day exclude weekends and holidays

 

Hi @Stuznet ,

 

You can use the dayOfWeek() function to determine if the current date is a weekend. Exclude weekends by the returned result. If the returned result is 0 or 6, the current day is the weekend.

203.PNG

Also please refer to this similar thread and see if it helps:

https://powerusers.microsoft.com/t5/Building-Flows/Calculate-11-working-days-excluding-weekends-and-...

 

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

Re: Recurrence monthly on 11 Business Day exclude weekends and holidays

Hi @Stuznet 

I've discovered the solution to this issue for another user here on the community, and I have written a blog article that explains the solution in detail. Check it out here:
https://manueltgomes.com/microsoft/flow/find-next-business-day/

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (12,056)