Skip to main content

system.kanoa.schedule.addScheduleBlockException

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:
  • scheduleBlockExceptionId (int): Schedule block exception ID.
  • Code Examples

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