You should work with the Service team to help with this. I think there
are ways to do this within a script, but considerations should be taken
into account for performance such as running as a serverscript to reduce
the network I/O traffic to the client of large volumes or elements
and/or alarms. When searching on alarms, it may make sense to make a
copy of the array since dealing directly with elements.alarms() will
change (ie: new alarms come in, closed alarms go away). I'm sure there
are other concerns the implementation might have with the overall design
of this type of script.

tisenberg's Profile:
View this thread: