# Get Alarm UUID when active

**URL:** <https://forum.inductiveautomation.com/t/get-alarm-uuid-when-active/66536>\
**Category:** Ignition\
**Tags:** ignition81, ignition80\
**Created:** [November 15, 2022, 5:31pm UTC](https://forum.inductiveautomation.com/t/get-alarm-uuid-when-active/66536 "2022-11-15T17:31:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drew.Gatti](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drew.gatti/32/39854_2.png) [@Drew.Gatti](https://forum.inductiveautomation.com/u/Drew.Gatti)\
**Post date:** [November 15, 2022, 5:31pm UTC](https://forum.inductiveautomation.com/t/get-alarm-uuid-when-active/66536/1 "2022-11-15T17:31:12Z")

</div>

Hello Everyone,

Can anyone help with getting the Alarm UUID when alarm gets active?

Background: I'm syncing a FTV alarm DB and Ignition and in order to do this, I have to trigger an acknowledgement in IG when FTV triggers one. I'm using the ALMD instruction to handle this handshake but once the ALMD gets acknowledged, I cant make IG do the same.

---

<div class="post-metadata">

**Author:** ![avaughn](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/avaughn/32/38972_2.png) [@avaughn](https://forum.inductiveautomation.com/u/avaughn)\
**Post date:** [November 17, 2022, 6:43pm UTC](https://forum.inductiveautomation.com/t/get-alarm-uuid-when-active/66536/2 "2022-11-17T18:43:59Z")

</div>

Hello Drew,

I may need more information to provide more specific recommendations, but you should have a couple options. You could use the tag change scripts to execute a script when an alarm goes active. This event has an alarmEvent object passed to it that contains the uuid (referenced with `alarmEvent.getId()`). You could also use system.alarm.queryStatus() to return a list of alarm events and then use system.alarm.acknowledge() to acknowledge those events. There's an example of this on the [system.alarm.acknowledge()](https://docs.inductiveautomation.com/display/DOC81/system.alarm.acknowledge) user manual page.

---

<div class="post-metadata">

**Author:** ![Drew.Gatti](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drew.gatti/32/39854_2.png) [@Drew.Gatti](https://forum.inductiveautomation.com/u/Drew.Gatti)\
**Post date:** [November 22, 2022, 4:39pm UTC](https://forum.inductiveautomation.com/t/get-alarm-uuid-when-active/66536/3 "2022-11-22T16:39:27Z")

</div>

We were trying to include duration of the alarm in the alarm database but we settled on including it in the associated section of the alarm. I though I needed to update the alarm data with the duration in the alarm active insert but the alarm makes another insert when it clears. So if I want duration, I just need to only look at the cleared versions of the alarm.

Thank you for the help! I hope the above makes sense.
