Skip to main content

system.kanoa.cmms.updateWorkOrderField(workOrderId, field, value, userId)

Updates the work order field with the passed value for the workOrderId


Parameters

workOrderId Integer: Id of workOrder to update
field String: Valid options are title, description, assetId, procedureId, workOrderStatusId, workOrderPriorityId, maintenanceTypeId, scheduleTypeId, requestedBy, assignedTo, leadTimeDays, enabled
value String: Value to update to
userId Integer:Id of the user executing the function


Returns

# of records modified Integer
message String None if success


Example