Skip to main content

system.kanoa.quality.event.updateChkShtEventFields(chkShtEventId, updates, userId)

Updates one or more fields in a check sheet event.


Parameters

chkShtEventId Integer: Id of check sheet event to update
updates Dictionary: In form of {'fieldName': value}. Valid fieldName options: chkShtId, assetId, shiftNameId, itemId, chkShtTriggerId, chkShtStateId, comment, takenDate, scheduledDate, submittedDate, approvedDate, scheduledBy, submittedBy, approvedBy
userId Integer:Id of the user executing the function


Returns

# of records modified Integer
message String None if success


Example

chkShtEventId = 123         
updates = {'chkShtStateId': 5, 'takenDate': system.date.now()}
userId = 4
retVal, msg = system.kanoa.quality.event.updateChkShtEventFields(chkShtEventId, updates, userId)