Skip to main content

system.kanoa.quality.config.deleteAlertGroup(alertGroupId, userId)

Deletes an new alert group. FK constraints will prevent us from deleting a check item group that is being used by a check item


Parameters

alertGroupId Integer: Id of the alertGroup to delete
userId Integer


Returns

# of records modified Integer
msg String None if success


Example

alertGroupId=1
userId=5
retVal, msg = system.kanoa.quality.config.deleteAlertGroup(alertGroupId, userId)
if msg or retVal == 0: system.perspective.sendMessage('showWarningToast', {'message': 'Could not delete this alert group. %s'%msg})
else: system.perspective.sendMessage('showSuccessfulToast', {'message': 'Alert Group has been deleted'})