Skip to main content

system.kanoa.schedule.updateScheduleBlockField(scheduleBlockId, field, value, userId)

Updates the passed field value for the given scheduleBlockId


Parameters

scheduleBlockId Integer
field String: Valid options are scheduleBlockName, assetId, itemId', workOrderId, scheduledQty, modeId, startDate, endDate, notes, rruleStr, color
value pyObject: Value to update
userId Integer


Returns

# of records modified Integer


Example

scheduleBlockId = 123
field = 'scheduleBlockName'
value = 'New Schedule Block Name'
userId = 456
retVal = system.kanoa.schedule.updateScheduleBlockField(scheduleBlockId, field, value, userId)