system.kanoa.cmms.getWorkOrderAlertGroups(workOrderId)
Retrieves the alert groups currently linked to a work order. Use this to check who (which groups) will be notified about a given work order �
for example, to display the assigned alert groups in a work order detail screen,
or to inspect current links before deciding whether to add or remove any with addWorkOrderAlertGroups / deleteWorkOrderAlertGroups.
Parameters
workOrderId Integer: Id of work order
Returns
alertGroupData pyDataset
Example
# List the alert groups currently linked to a work order
workOrderId = 53
data = system.kanoa.utilities.convertDatasetToJSON(system.kanoa.cmms.getWorkOrderAlertGroups(workOrderId))
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
alertGroupName 2nd Cricket Team
alertGroupId 94
enabled True
changedDate None
alertGroupLinkId 3
createdDate Thu Apr 16 19:36:27 UTC 2026
createdBy 5
changedBy None
workOrderId 53
>>>