Skip to main content

system.kanoa.inventory.getPartInventoryPolicies(paramsDict)

Returns part inventory policies matching the supplied filter criteria. Pass an optional dictionary of filter fields to narrow the results to a specific part, inventory location, policy id, or stocked status; omit fields (or pass an empty dictionary) to return a broader set of policies.


Parameters

paramsDict Dictionary

- inventoryAssetIdInteger
- isStockedBoolean
- partIdInteger
- partInventoryPolicyIdInteger

Returns

data pyDataset


Example

paramsDict = {'partNumber': 'A123', 'isStocked': True}

data = system.kanoa.inventory.getPartInventoryPolicies(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
partId 3
assetTypeName Storage Location
changedDate Sat Jun 06 14:02:46 UTC 2026
lastUpdated Sat Jun 06 14:02:46 UTC 2026
assetPath Kanoa Box Co\Warehouse\Parts Room
changedBy 5
partInventoryPolicyId 4
countFrequencyDays 60
inventoryAssetId 2968
partCategoryPath BBB
lastUpdatedBy jason
defaultUomId 2
uomCode FT
reorderPointQty 200.0
isStocked True
createdDate Sat Jun 06 14:01:41 UTC 2026
createdBy 5
partDescription Blah
uomName Foot
partNumber A1
iconPath material/apps
maxQty 1000.0
reorderQty 500.0
safetyStockQty 300.0
minQty 100.0
>>>