Skip to main content

system.kanoa.performanceState.updatePerformanceState(performanceStateInfo)

Update the performance state reason. All performanceStateInfo keys are required.


Parameters

performanceStateInfo Dictionary

- enabledBoolean
- performanceStateClassIdInteger
- performanceStateIdInteger
- performanceStateNameString

Returns

# of records modified Integer
msg String None if successful


Example

userId = 18
performanceStateInfo = {
'performanceStateId': 2,
'performanceStateName': 'Not enough personnel',
'performanceStateClassId': 1,
'performanceStateColor': '#FFFFCC',
'enabled': True,
}
retVal, msg =system.kanoa.performanceState.updatePerformanceState(performanceStateInfo, userId)
print retVal, msg
>>>
1, None