system.kanoa.schedule.updateScheduleBlock
Description
Updates a schedule block.Syntax
updateScheduleBlock(scheduleBlockInfo, userId)- scheduleBlockInfo (Dictionary) - Dictionary containing information about the schedule block.
- userId (int) - User ID.
- # 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)