Skip to main content

system.kanoa.schedule.updateScheduleBlockField

This function requires KanoaOPS module

Description

Updates the passed field value for the given scheduleBlockId.

Syntax

updateScheduleBlockField(scheduleBlockId, field, value, userId)
  • Parameters
      scheduleBlockId (int) - ID of the schedule block.
      field (string) - Name of the column to update.
      value (pyObject) - New value for the specified field.
      userId (int) - User ID.
  • Returns
      # of records modified.
  • Code Example

    # Example Usage:
    schedule_block_id = 123
    field_name = 'scheduleBlockName'
    new_value = 'New Schedule Block Name'
    user_id = 456
    records_modified = system.kanoa.schedule.updateScheduleBlockField(schedule_block_id, field_name, new_value, user_id)