system.kanoa.lot.addLotState
Description
Adds a new lot state.Syntax
addLotState(lotStateInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
lotStateName | string | ||
enabled | bool |
Code Examples
# Example usage
>lotStateInfo = {'lotStateName': 'QA Hold', 'enabled': True}
>userId = 5
>lotStateId,msg = system.kanoa.lot.addLotState(lotStateInfo, userId)
>print(lotId)