# Expression: source path of alarm

**URL:** <https://forum.inductiveautomation.com/t/expression-source-path-of-alarm/46874>\
**Category:** Ignition\
**Tags:** ignition80, perspective, ignition81\
**Created:** [May 19, 2021, 8:12am UTC](https://forum.inductiveautomation.com/t/expression-source-path-of-alarm/46874 "2021-05-19T08:12:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tadeja.saje](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@tadeja.saje](https://forum.inductiveautomation.com/u/tadeja.saje)\
**Post date:** [May 19, 2021, 8:12am UTC](https://forum.inductiveautomation.com/t/expression-source-path-of-alarm/46874/1 "2021-05-19T08:12:41Z")

</div>

Hi!  
I have perspective 8.1  
I would to trigger an event when there are _any_ active, unacked alarms and specific source path of alarm .

> Blockquote  
> if({[System]Gateway/Alarming/Active and Unacked},  
> "[https://192.168.2.2.1i/bernstein\_greatescapemarch\_clip.mp3](https://192.168.2.2.1i/bernstein_greatescapemarch_clip.mp3)",  
> "")

What is expression (Binding Type) for source path of alarms?

---

<div class="post-metadata">

**Author:** ![dpitzer](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@dpitzer](https://forum.inductiveautomation.com/u/dpitzer)\
**Post date:** [May 19, 2021, 6:40pm UTC](https://forum.inductiveautomation.com/t/expression-source-path-of-alarm/46874/2 "2021-05-19T18:40:47Z")

</div>

You can access the number of Active Unacked alarms on a specific tag from the Alarms.ActiveUnackCount property.  
Ex.  
[default]myFolder/myTag/Alarms/ActiveUnackCount

I cannot seem to find a way to access this property from a script. I tried system.tag.readBlocking() and system.tag.getConfiguration() to no avail.

However, you can bind it to a different object property like a label.text or a custom property on a view via a Direct or Indirect Tag Binding. From there, you can run a script that pulls in the property to which you bound the value and see if it is \> 0.

I hope this gets you a little closer.

---

<div class="post-metadata">

**Author:** ![calimero100582](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/calimero100582/32/18630_2.png) [@calimero100582](https://forum.inductiveautomation.com/u/calimero100582)\
**Post date:** [May 19, 2021, 6:43pm UTC](https://forum.inductiveautomation.com/t/expression-source-path-of-alarm/46874/3 "2021-05-19T18:43:28Z")

</div>

I think I would go with a script with: [system.alarm.queryStatus - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.alarm.queryStatus)
