web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sharepoint Online Cale...
Power Automate
Answered

Sharepoint Online Calendar Check for Holidays

(0) ShareShare
ReportReport
Posted on by 74
Hello,

I am working on a flow that would send an email if an event is created on a Holiday.

The use case is we have project team members who sometimes work holidays. All projects would be created on a sharepoint calendar I’ve created. These projects span multiple days, for example December 21st - December 26th.

I’ve gone ahead and built a flow that can send me an email when the event category is Holiday but truly what I need is someway to have flow detect if more than one event is created on a set of days I declare as holidays... the main issue I have had is the dynamic content only gives me start date and end date for any given event.

I’ve thought about creating a switch but I am not sure this will give me the functionality I need.

I’m open to any ideas and help!

Thanks!
Categories:
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @edmm94 

     

    I had created a Flow which basically runs to calculate the number fo workig days in a month

    It removes the weekends and holidays (based on a holiday calendar)

    https://github.com/rdorrani/Microsoft-Flow/blob/master/CalculateWorkingDaysbasedonagivendaterange_20190804164956.zip

     

    Check and see if this helps to address your scenario

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Liquid error: Exception has been thrown by the target of an invocation. edmm94 Profile Picture
    74 on at
    Hi Reza,

    I’ll test it out first thing tomorrow morning (CDT)! Part of me is so tempted to get my laptop right now... but once I start flowing I can’t stop.

    Thanks for the response! I’ll hopefully be marking this solved early tomorrow morning.
  • edmm94 Profile Picture
    74 on at

    Hi @RezaDorrani 

     

    I just had some time to review the flow you provided and it's fuctions. I think this gives me everything I need to make my use case work.

     

    Thank you for your time!

  • edmm94 Profile Picture
    74 on at
    Hi  
     
    So.... I got it mostly working for my use case but for some reason the flow is not filtering Sundays or holidays. It is filtering the Saturdays which is why I am so perplexed about the issue.

    See Below for screenshots of my configuration and the outputs.
     
    In this test, I gave December 20th - December 27th as inputs. The expected results are total working days 4. I am getting 6.
     
    This is how I have my Select set up that feeds into the first filtering layer (Filtering Holidays).
     

     
     
     
    This is a side by side comparsion of the only difference I can find between the way your flow runs and mine does. Mine is on the left and I am pulling this date range from a sharepoint calender list where team members will put project dates into.
     

     
     
  • edmm94 Profile Picture
    74 on at
    I figured it out! @RezaDorrani

    Thanks for you help!
  • Liquid error: Exception has been thrown by the target of an invocation. frederickrching Profile Picture
    3 on at

    Hi @RezaDorrani ,

     

    How do I make your flow relative to my country's holiday? Thank you!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard