Skip to main content

system.kanoa.inventory.addPart(partInfo, userId)

Adds a new part record.


Parameters

partInfo Dictionary

- defaultUomIdInteger
- enabledBoolean
- isConsumableBoolean
- isCriticalSpareBoolean
- isRepairableBoolean
- isSerializedBoolean
- manufacturerIdInteger
- manufacturerPartNumberString
- notesString
- partCategoryIdInteger
- partDescriptionString
- partNumberString

userId Integer:Id of the user executing the function


Returns

partId Integer
message String None if success


Example