system.kanoa.lot.addLotAttribute
Description
Adds a lot attributeSyntax
addLotAttribute(lotAttributeInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
lotId | int | ||
lotAttributeName | string | ||
lotAttributeValue | string |
Code Examples
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
lotId = system.kanoa.utilities.getFieldValue('lotId', system.kanoa.lot.getLots({}))
if lotId:
lotAttributeInfo = {
'lotId': lotId,
'lotAttributeName': 'testWeight',
'lotAttributeValue': 100
}
system.kanoa.lot.addLotAttribute(lotAttributeInfo, userId)
>>> (1, None)