Skip to main content

system.kanoa.inventory.addInventoryLocation(inventoryLocationInfo, userId)

Adds a new inventory location record.


Parameters

inventoryLocationInfo Dictionary

- assetIdInteger
- isActiveBoolean
- locationCodeString
- locationNameString
- locationTypeString

userId Integer:Id of the user executing the function


Returns

inventorylocationId Integer
message String None if success


Example

# Create a storeroom location
locationId, msg = system.kanoa.inventory.addInventoryLocation({
'assetId': 45,
'locationName': 'Parts Room',
'locationCode': 'PR',
'locationType': 'Storeroom',
'isActive': True,
}, userId)