Skip to main content

system.kanoa.cmms.getScheduleTypes(paramsDict)

Looks up the schedule-trigger types available for work order schedules (e.g. distinguishing a time-based "Schedule" from a condition- or manual-triggered type). Results can be filtered with the optional keys of paramsDict, or all schedule types can be retrieved by passing an empty dictionary. This is the lookup referenced elsewhere in the API by filters such as getWorkOrderEvents's scheduleTypeName.


Parameters

paramsDict Dictionary

- enabledBoolean
- scheduleTypeIdInteger
- scheduleTypeIdListList of Integers
- scheduleTypeNameString

Returns

workOrderStatusData pyDataset


Example

paramsDict = {"enabled": True}

data = system.kanoa.utilities.convertDatasetToJSON(system.kanoa.cmms.getScheduleTypes(paramsDict))

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
scheduleTypeName Condition
enabled True
changedDate None
createdDate Thu Feb 26 00:00:00 UTC 2026
createdBy 5
changedBy None
scheduleTypeId 3
>>>