# Alarm Active Tag Event Script

**URL:** <https://forum.inductiveautomation.com/t/alarm-active-tag-event-script/17285>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [March 9, 2018, 12:43am UTC](https://forum.inductiveautomation.com/t/alarm-active-tag-event-script/17285 "2018-03-09T00:43:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Sladden1](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@Ben\_Sladden1](https://forum.inductiveautomation.com/u/Ben_Sladden1)\
**Post date:** [March 9, 2018, 12:43am UTC](https://forum.inductiveautomation.com/t/alarm-active-tag-event-script/17285/1 "2018-03-09T00:43:37Z")

</div>

We have recently upgraded to 7.9.6 and some of our existing alarm active/cleared/ack scripts have started to fail.

It appears that the alarm event object no longer has a id parameter. example:

putting  
print “zzzzzzzzzzz” + str(alarmEvent)

into the alarmActive Tag event script prints the following in the wrapper log:

INFO | jvm 1 | 2018/03/09 10:50:12 | zzzzzzzzzzzEvent[name=Alarm, source=prov:default:/tag:Quarry Rd/alarmTest:/alm:Alarm, priority=Low, desc=null]

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [March 9, 2018, 1:42pm UTC](https://forum.inductiveautomation.com/t/alarm-active-tag-event-script/17285/2 "2018-03-09T13:42:45Z")

</div>

You need to specify the property of alarmEvent you want.

> print 'zzzzzzzzzzzzzz '+ str(alarmEvent.id)

---

<div class="post-metadata">

**Author:** ![Ben\_Sladden1](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@Ben\_Sladden1](https://forum.inductiveautomation.com/u/Ben_Sladden1)\
**Post date:** [March 9, 2018, 11:23pm UTC](https://forum.inductiveautomation.com/t/alarm-active-tag-event-script/17285/3 "2018-03-09T23:23:12Z")

</div>

Hi yes that is what I was doing however this now returns none I.e. alarmEvent.id does not exist. The script above just shows what parameters still exist.

---

<div class="post-metadata">

**Author:** ![Ben\_Sladden1](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@Ben\_Sladden1](https://forum.inductiveautomation.com/u/Ben_Sladden1)\
**Post date:** [March 20, 2018, 12:49am UTC](https://forum.inductiveautomation.com/t/alarm-active-tag-event-script/17285/4 "2018-03-20T00:49:43Z")

</div>

Turns out that its now alarmEvent.eventId not alarmEvent.id
