system.kanoa.cmms.getWorkTypes(paramsDict)
Retrieves work types configured in the system, the kind of work a technician performed on a work order event (e.g. "Design", "Repair"), as logged via addWorkOrderEventTechnician.
This is distinct from maintenanceType/maintenanceSubType, which classify the work order itself, not the labor performed against it.
Passing an empty dictionary returns a dataset of all work types.
Parameters
paramsDict Dictionary
| - enabled | Boolean | |
| - workTypeId | Integer | |
| - workTypeName | String |
Returns
workTypeData pyDataset
Example
# Get all enabled work types
paramsDict = {"enabled": True}
data = system.kanoa.utilities.convertDatasetToJSON(system.kanoa.cmms.getWorkTypes(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
>>>
workTypeName Repair
workTypeColor #C0392B
lastUpdatedBy jason
enabled True
changedDate None
createdDate Sat Sep 12 18:03:10 UTC 2026
workTypeId 1
createdBy 5
changedBy None
sortOrder 10
lastUpdated Sat Sep 12 18:03:10 UTC 2026
>>>