Setting an alarm event property

I have an Ignition SCADA project with support for audio alarm annunciation. IE while there are unacked alarms, a sound file plays on loop.

I have the additional requirement to support ‘silencing’ all active alarms. To implement this, I would like to grab all the current alarm events and set an AssociatedData property, silenced, to True. I gather that I can change a tags alarm configuration through system.tag.editAlarmConfig() but when I execute the edit it seems the live alarm event AssociatedData does not change to reflect this.

Is there a better way to go about this?

Still can’t get this to work.

I tried binding the alarm ‘silence’ associated data property to a separate memory tag, but this doesn’t alter the property on the active alarm event since those values were set when the alarm went active.