Skip to main content

system.kanoa.cmms.deleteProcedureStepCheck(procedureStepCheckId, userId)

Deletes a procedure step check by id. A procedure step check is typically a verification item (e.g. a pass/fail or measurement check) attached to a procedure step, and this function removes it when it was added in error or is no longer required. The underlying SQL will prevent deletion if the procedure step check has already been used, so the call fails safely rather than removing a check that has recorded results tied to it.


Parameters

procedureStepCheckId Integer: Id of the procedure step to delete
userId Integer:Id of the user executing the function


Returns

# of records modified Integer
msg String None if success


Example

procedureStepCheckId = 9187
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})

result, message = system.kanoa.cmms.deleteProcedureStepCheck(procedureStepCheckId, userId)
print result, message