Check Holiday
Check Holiday
Checks whether a specific date is a holiday based on the list of holidays defined in the Date and time settings action, returning true or false. Useful for creating business rules that depend on the calendar — such as avoiding scheduling on holidays or applying different rules to special dates.
Options
Date settings
Select the Date and time settings action that contains the list of holidays that will be consulted. This field is required — without it, no holiday is identified.
Use a date relative to the robot's execution?
Defines whether the date checked will be the current date at the moment of the execution. Select Yes to use the current date automatically, or No to provide a specific date.
Input format
Select the format of the date provided. This field is only shown when Use a relative date is set to No.
Date to be formatted
Enter the date that will be checked as a holiday. This field is only shown when Use a relative date is set to No.
Returns
Custom code
actions["action-id"].isHoliday // true if the date is a holiday, false otherwise (Yes/No)
Field selection
- isHoliday — indicates whether the date checked is a holiday (Yes/No)
Rules and Conditions
- The Date settings field is required.
- When Use a relative date is No, the Input format and Date fields are also required.
- The date is checked both against the list of holidays and against the days of the week configured as non-working days.