system.kanoa.performanceState.updatePerformanceState(performanceStateInfo)
Update the performance state reason. All performanceStateInfo keys are required.
Parameters
performanceStateInfo Dictionary
| - enabled | Boolean | |
| - performanceStateClassId | Integer | |
| - performanceStateId | Integer | |
| - performanceStateName | String |
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