Skip to main content

system.kanoa.schedule.updateScheduleBlock

This function requires KanoaOPS module

Description

Updates a schedule block.

Syntax

updateScheduleBlock(scheduleBlockInfo, userId)
  • Parameters
      scheduleBlockInfo (Dictionary) - Dictionary containing information about the schedule block.
      userId (int) - User ID.
  • Returns
      # of records modified.
  • Code Example

    # Example Usage:
    updated_schedule_info = {'scheduleBlockId': 456, 'scheduleBlockName': 'Updated Maintenance', 'assetId': 2, 'itemId': None, 'workOrderId': None, 'scheduledQty': None, 'modeId': 4, 'startDate': ..., 'endDate': ..., 'notes': 'Updated Maintenance notes', 'rruleStr': '...', 'color': '00FF00'}
    user_id = 123
    records_modified = system.kanoa.schedule.updateScheduleBlock(updated_schedule_info, user_id)