Skip to main content

system.kanoa.inventory.getUnitOfMeasures(paramsDict)

Retrieves unit of measure records (for example "EA", "FT", "GAL", "LB") defined in the Kanoa MES inventory module. Results can be filtered by id, code, name, or enabled status by supplying any combination of those keys in paramsDict; omitting a key (or passing an empty dictionary) means that field is not used as a filter. Commonly used to populate unit of measure pickers when defining or editing parts.


Parameters

paramsDict Dictionary

- enabledBoolean
- uomCodeString
- uomIdInteger
- uomNameString

Returns

data pyDataset


Example

paramsDict = {'enabled': True}
data = system.kanoa.inventory.getUnitOfMeasures(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
uomCode EA
uomId 1
enabled True
changedDate None
lastUpdated Sat May 16 23:54:19 UTC 2026
createdDate Sat May 16 23:54:19 UTC 2026
createdBy 5
changedBy None
uomName Each
>>>