Skip to main content

system.kanoa.performanceState.updatePerformanceStateClass(performanceStateClassInfo, userId)

updates an performance state class. All performanceStateClassInfo keys are required.


Parameters

performanceStateClassInfo Dictionary

- enabledBoolean
- parentIdInteger
- performanceStateClassDescriptionString
- performanceStateClassIdInteger
- performanceStateClassNameString

userId Integer: Id of user executing the function


Returns

# of records modified Integer
msg String None if success


Example

userId = 18
performanceStateClassInfo = {
'performanceStateClassId': 7,
'performanceStateClassName': 'Operations',
'parentId': 5,
'performanceStateClassDescription': 'MES Operations state class',
'enabled': True
}
updatePerformanceStateClass(performanceStateClassInfo, userId)
>
4, None
>>>