Skip to main content

system.kanoa.cmms.getMaintenanceSubTypes(paramsDict)

Retrieves maintenance sub types configured in the system, such as "Bearing Replacement" or "Belt Replacement" under a parent maintenance type like "Mechanical". All keys in paramsDict are optional and act as filters � omit a key (or pass an empty dict) to return every maintenance sub type. Combine filters (for example maintenanceTypeId and enabled) to narrow results to the sub types belonging to a specific maintenance type that are currently active.


Parameters

paramsDict Dictionary

- enabledBoolean
- maintenanceSubTypeIdInteger
- maintenanceSubTypeNameString
- maintenanceTypeIdInteger
- maintenanceTypeNameString

Returns

workOrderStatusData pyDataset


Example

# Look up all enabled maintenance sub types under the "Corrective" maintenance type
paramsDict = {"maintenanceTypeName": "Corrective", "enabled": True}
data = system.kanoa.utilities.convertDatasetToJSON(system.kanoa.cmms.getMaintenanceSubTypes(paramsDict))

for i, row in enumerate(data):
for k,v in row.items():
print k,v

break #Just limiting to returning the columns from the first record for display purposes
>>>
lastUpdatedBy SYSTEM on 2026-03-21
createdByUser SYSTEM
enabled True
changedDate None
createdDate Sat Mar 21 00:00:00 UTC 2026
maintenanceSubTypeId 3
createdBy 39
maintenanceTypeColor --kcBlue-20
changedBy None
maintenanceSubTypeName Forklift Damage
changedByUser None
maintenanceTypeId 1
maintenanceTypeName Corrective
>>>