Skip to main content
About the Resource Center

How can I create a flow that takes different paths depending on the holiday day?

In this example, we use the Thanksgiving holiday:

  • To get the fourth Thursday of November: GetDayOfWeekOccurrence(5, 4, Year(GetCurrentDateTimeUtc()), 11)
  • To get the day after Thanksgiving (which may not always be the fourth Friday): AddDays(GetDayOfWeekOccurrence(5, 4, Year(GetCurrentDateTimeUtc()), 11), 1)
  • To see if today is the same day as the specified day:
    1. Save the specified day as a datetime variable like Task.thanksgiving. 
    2. Use a decision action and compare the today’s year, month, & day to Task.thanksgiving.  You might also want to check the hour/minutes if that’s needed.

For more details, download and import this Thanksgiving Schedule Example into Architect.