Skip to main content

system.kanoa.schedule.addScheduleBlockException

This function requires KanoaOPS module

Description

Adds a schedule block exception. Formerly called addRecurringException.

Syntax

addScheduleBlockException(scheduleBlockId, exceptionDate, userId)
  • Parameters
      scheduleBlockId (int) - ID of the schedule block.
      exceptionDate (datetime) - Date of the exception.
      userId (int) - User ID.
  • Returns
      Schedule block exception ID.
  • Code Example

    # Example Usage:
    schedule_block_id = 789
    exception_date = ...
    user_id = 101
    exception_id = system.kanoa.schedule.addScheduleBlockException(schedule_block_id, exception_date, user_id)