Holiday APIs
Use these APIs to maintain holidays and holiday calendars, and to retrieve Holiday Calendar records.
Retrieve All Holiday Calendars
getAllHolidayCalendars(boolean activeOnly)
By default, retrieves all active Holiday Calendar records. To get all records, use getAllHolidayCalendars(false). Return type is List<MaxObject>.
Set Passed-in Holiday Calendar Value for Logged-in User
setHolidayCalendar(UUID calendarId)
Set Passed-in Holiday Calendar Value for Specified User
setHolidayCalendar(UUID userId, UUID calendarId)
Create Holiday Calendar Record
createHolidayCalendar(String name)
Return type is MaxObject.
Create Holiday Record
createHoliday(UUID calendarId, String name, LocalDate startDate, int daysOff)
A previously created Holiday Calendar record is required. Return type is MaxObject.
For more information:
Was this helpful?