system.kanoa.inventory.getParts(paramsDict)
Returns inventory parts matching the given filter criteria. Pass an empty dictionary (or omit filter keys) to retrieve all parts, or narrow the result set by category, manufacturer, part number, or the various boolean handling flags (consumable, serialized, repairable, critical spare). Useful for populating part-picker components, running inventory audits, or looking up a part before creating a stock transaction.
Parameters
paramsDict Dictionary
| - defaultUomId | Integer | |
| - enabled | Boolean | |
| - isConsumable | Boolean | |
| - isCriticalSpare | Boolean | |
| - isRepairable | Boolean | |
| - isSerialized | Boolean | |
| - manufacturerId | Integer | |
| - manufacturerPartNumber | String | |
| - normalizedPartNumber | String | standardized/comparable version of partNumber used for searching and duplicate detection. |
| - partCategory | String | |
| - partDescription | String | |
| - partId | Integer | |
| - partNumber | String |
Returns
data pyDataset
Example
>>>
Row 0
notes None
partId 1
createdByUser jason
manufacturerName Johnson & Johnson
isSerialized True
enabled True
partCategoryId 3
changedDate Sun May 17 21:04:20 UTC 2026
lastUpdated Sun May 17 15:25:33 UTC 2026
changedBy 5
changedByUser jason
partCategoryPath PCA\A11
isCriticalSpare True
lastUpdatedBy jason
uomCode FT
defaultUomId 2
normalizedPartNumber A123
manufacturerId 1
partPath PCA\A11\A123
isConsumable True
isRepairable True
manufacturerPartNumber 123A
createdDate Sun May 17 20:40:39 UTC 2026
createdBy 5
partDescription blah
partCategoryLevel 1
uomName Foot
partNumber A123
partCategoryName A11
>>> # Look up all enabled, critical-spare parts
paramsDict = {
'isCriticalSpare': True,
'enabled': True
}
data = system.kanoa.inventory.getParts(paramsDict)
data = system.kanoa.utilities.convertDatasetToJSON(data)
for i, row in enumerate(data):
print 'Row %i'%i
for k,v in row.items():
print k,v
break #Just limiting to returning the columns from the first record for display purposes