Skip to main content

system.kanoa.cmms.updateProcedureStepCheckEvent(checkEventInfo, userId)

Updates an existing procedure step check event � the recorded result of a single check performed during a work order's execution of a procedure step, such as a logged value, pass/fail status, or comment. Call this when a technician's recorded reading needs correcting after the fact, or when a supervisor amends the status or comment on a completed check. All keys in checkEventInfo are required, and the function overwrites the identified check event's fields with the values supplied, recording userId for audit purposes.


Parameters

checkEventInfo Dictionary

- commentString
- procedureStepCheckEventIdIntegerId of procedure step check event
- procedureStepCheckIdIntegerId of procedure step check
- procedureStepEventIdIntegerId of procedure step check event
- statusInteger
- valueString

userId Integer:Id of the user executing the function


Returns

# of records modified Integer
message String None if success


Example

checkEventInfo = {
"procedureStepCheckEventId": 55210,
"procedureStepCheckId": 8890,
"procedureStepEventId": 19042,
"value": "3.2",
"status": 1,
"comment": "Within spec after tensioner adjustment."
}
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
result, message = system.kanoa.cmms.updateProcedureStepCheckEvent(checkEventInfo, userId)
print result, message