How to script "Add AppManager Comments" for an alarm

I want to be able to update the "AppManager Comments" field on an alarm
from an automation script. From the debugger, it is the "alarm.Comment"
variable. Just using the line alarm.Comment = 'test' returns the error
"Could not modify alarm: TypeError: Cannot convert null to an object."
This works fine if you use the right-click tool, "Add AppManager
comment...", but I need to be able to do this from an automation.

This is the code I'm using (pretty much straight out of the Scripting


alarm.Comment = 'test'


catch( Exception )
formula.log.warn( 'Could not modify alarm: ' Exception )

csssl's Profile:
View this thread: