Skip to main content

system.kanoa.performanceState.updatePerformanceState

This function requires KanoaOPS module

Description

Update the performance state reason. Update Link table accordingly

Syntax

updatePerformanceState(performanceStateInfo, userId)
  • Parameters
      performanceStateInfo (dict)
      - performanceStateName (string)
      - performanceStateClassId (int)
      - performanceStateColor (int)
      - enabled (bool)
      userId (int)
  • Returns
    # 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
    >>>