system.kanoa.performanceState.updatePerformanceState
Description
Update the performance state reason. Update Link table accordinglySyntax
updatePerformanceState(performanceStateInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
performanceStateName | string | ||
performanceStateClassId | int | ||
performanceStateColor | int | ||
enabled | bool |
Code Examples
# 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
>>>