Skip to main content

system.kanoa.lot.addLotAttribute(lotAttributeInfo, userId)

Adds a lot attribute


Parameters

lotAttributeInfo Dictionary

- lotAttributeNameString
- lotAttributeValueString
- lotIdInteger

userId Integer


Returns

lotAttributeId Integer
message String None if success


Example

userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
lotAttributeInfo = {
'lotId': 45,
'lotAttributeName': 'testWeight',
'lotAttributeValue': 100
}

lotAttributeId, msg = system.kanoa.lot.addLotAttribute(lotAttributeInfo, userId)