Skip to main content

system.kanoa.inventory.getPartCategories(paramsDict)

Returns part category records from the Kanoa MES inventory hierarchy, optionally narrowed down using the filter fields supplied in paramsDict. Pass an empty dictionary to retrieve all part categories, or populate one or more of the recognized keys to filter the result set.


Parameters

paramsDict Dictionary

- categoryNameString
- categoryPathString
- enabledBoolean
- parentPartCategoryIdInteger
- parentPartCategoryNameString
- partCategoryString
- partCategoryIdInteger
- partDescriptionString

Returns

data pyDataset


Example

# Look up all enabled part categories whose name matches "Bearings"
paramsDict = {'partCategory': 'Bearings', 'enabled': True}

data = system.kanoa.inventory.getPartCategories(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
>>>
Row 0
lastUpdatedBy jason
parentCategoryName PCA
createdByUser jason
categoryPath PCA\A11
categoryLevel 1
parentPartCategoryId 1
categoryName A11
enabled True
partCategoryId 3
changedDate None
lastUpdated Sun May 17 15:17:12 UTC 2026
createdDate Sun May 17 15:25:33 UTC 2026
createdBy 5
changedBy None
sortOrder None
changedByUser None
>>>