Skip to main content

system.kanoa.lot.addLotState

Description

Adds a new lot state.

Syntax

addLotState(lotStateInfo, userId)

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

  • Returns:
  • lotStateId (int)
  • message (string): None if success
  • Dictionary

    ParameterTypeRequiredNotes
    lotStateNamestring
    enabledbool

    Code Examples

    # Example usage
    >lotStateInfo = {'lotStateName': 'QA Hold', 'enabled': True}
    >userId = 5
    >lotStateId,msg = system.kanoa.lot.addLotState(lotStateInfo, userId)
    >print(lotId)