system.kanoa.performanceState.updatePerformanceStateField(performanceStateId, field, value, userId)
Updates the passed field value for the given performanceStateId. If the field is enabled, we will update the assetLink Table (kanoaOPS)
Parameters
performanceStateId Integer: Id of the performance state to update
field String: Valid options are performanceStateName, performanceStateClassId, performanceStateColor, enabled
value pyObject: Value to update to
userId Integer: Id of user executing the function
Returns
# of records modified Integer
msg String None if successful
Example
userId = 18
retVal, msg = system.kanoa.performanceState.updatePerformanceState(2, 'performanceStateClassId', 5, userId)
print retVal, msg
>>>
1, None