Skip to main content

system.kanoa.cmms.getMaintenanceTypes(paramsDict)

Retrieves the top-level maintenance types configured in the system, such as "Corrective" or "Preventive". These serve as the parent classification for maintenance sub types. All keys in paramsDict are optional and act as filters � omit a key (or pass an empty dict) to return every maintenance type. Use enabled to restrict results to active types, or maintenanceTypeId/maintenanceTypeName to look up a specific one.


Parameters

paramsDict Dictionary

- enabledBoolean
- maintenanceTypeIdInteger
- maintenanceTypeNameString

Returns

workOrderStatusData pyDataset


Example

# Look up "Corrective" maintenance type
paramsDict = {"maintenanceTypeName": "Corrective"}
mainTypeInfo = system.kanoa.utilities.convertDatasetRowToJSON(system.kanoa.cmms.getMaintenanceTypes(paramsDict),0)
for k,v in mainTypeInfo.items():
print k,v