system.kanoa.schedule.addScheduleBlockException(scheduleBlockId, exceptionDate, userId)
Adds a new scheduleBlock exception
Parameters
scheduleBlockId Integer: Id of Schedule Block
exceptionDate DateTime: Date of day to add an exception for
userId Integer:Id of the user executing the function
Returns
scheduleBlockExceptionId Integer
Example
scheduleBlockId = 789
exceptionDate = system.date.parse("2025-11-05 00:00:00")
userId = 101
scheduleBlockExceptionId = system.kanoa.schedule.addScheduleBlockException(scheduleBlockId, exceptionDate, userId)