Skip to main content

system.kanoa.performanceState.updatePerformanceState

Description

Update the performance state reason. Update Link table accordingly

Syntax

updatePerformanceState(performanceStateInfo, userId)

Parameters:
  • performanceStateInfo (dict)
  • userId (int)

  • Returns:
  • recordsModified (int)
  • msg (string): None if successful
  • Dictionary

    ParameterTypeRequiredNotes
    performanceStateNamestring
    performanceStateClassIdint
    performanceStateColorint
    enabledbool

    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
    >>>