system.kanoa.performanceState.updatePerformanceState
Description
Update the performance state reason. Update Link table accordinglySyntax
updatePerformanceState(performanceStateInfo, userId)- performanceStateInfo (dict)
- - performanceStateName (string)
- - performanceStateClassId (int)
- - performanceStateColor (int)
- - enabled (bool)
- userId (int)
# of records modified (int), msg (string): None if successful
Code Example
# Example Usage:
userId = 18
performanceStateInfo = {
'performanceStateId': 2,
'performanceStateName': 'Not enough personnel',
'performanceStateClassId': 1,
'performanceStateColor': '#FFFFCC',
'enabled': True,
}
system.kanoa.performanceState.updatePerformanceState(performanceStateInfo, userId)
>
5, None
>>>