# Alarm Pipeline - Get 'Current' tag value?

**URL:** <https://forum.inductiveautomation.com/t/alarm-pipeline-get-current-tag-value/95876>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [September 11, 2024, 11:02pm UTC](https://forum.inductiveautomation.com/t/alarm-pipeline-get-current-tag-value/95876 "2024-09-11T23:02:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyler.robertson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tyler.robertson/32/18299_2.png) [@tyler.robertson](https://forum.inductiveautomation.com/u/tyler.robertson)\
**Post date:** [September 11, 2024, 11:02pm UTC](https://forum.inductiveautomation.com/t/alarm-pipeline-get-current-tag-value/95876/1 "2024-09-11T23:02:14Z")

</div>

I might be missing something simple, but in an alarm pipeline is there a way to get the current value (not initial eventValue) of the tag that caused the alarm pipeline to start?  
I figured out from **{source}** or **{displayPathOrSource}** how to store the original tag path to a local property, (which in my case is **currentValue** )  
If I then use tag( **{currentValue}** ), I just get null?

use case: I have a tag alarm with multiple e-mail updates if temperature is above a certain limit but I want to update the value with whatever the current tag value is.

---

<div class="post-metadata">

**Author:** ![tyler.robertson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tyler.robertson/32/18299_2.png) [@tyler.robertson](https://forum.inductiveautomation.com/u/tyler.robertson)\
**Post date:** [September 12, 2024, 12:30am UTC](https://forum.inductiveautomation.com/t/alarm-pipeline-get-current-tag-value/95876/2 "2024-09-12T00:30:29Z")

</div>

Figured it out by doing it in a script but I still feel like I am missing something more straightforward, like in the expression syntax - ie: why did tag() not work.. ☹

| | path = event[currentPath] |
| --- | --- |
| | t = system.tag.readBlocking([path])[0].value |
| | event[currentValue] = t |

---

<div class="post-metadata">

**Author:** ![amy.sudibyo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amy.sudibyo/32/38659_2.png) [@amy.sudibyo](https://forum.inductiveautomation.com/u/amy.sudibyo)\
**Post date:** [September 12, 2024, 3:10am UTC](https://forum.inductiveautomation.com/t/alarm-pipeline-get-current-tag-value/95876/3 "2024-09-12T03:10:48Z")

</div>

You can use [{eventValue}](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/alarm-notification/alarm-notification-pipelines/pipeline-blocks/notification-block) to get the value that triggered the alarm

---

<div class="post-metadata">

**Author:** ![tyler.robertson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tyler.robertson/32/18299_2.png) [@tyler.robertson](https://forum.inductiveautomation.com/u/tyler.robertson)\
**Post date:** [September 12, 2024, 3:22pm UTC](https://forum.inductiveautomation.com/t/alarm-pipeline-get-current-tag-value/95876/4 "2024-09-12T15:22:29Z")

</div>

Sorry could have been more clear, I meant getting the _current_ value. {eventValue} is straight forward but I'm trying to send status notifications for an alarm, like "Yep, the room is still hot, it's currently \_\_F"

Maybe I'm using the alarm pipeline wrong and I should be triggering the alarm again? I'm not expecting the alarm to go to a cleared/dropout state first

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 12, 2024, 3:25pm UTC](https://forum.inductiveautomation.com/t/alarm-pipeline-get-current-tag-value/95876/5 "2024-09-12T15:25:53Z")

</div>

Alarm pipelines get a very limited, not-a-real expression context. A script is the best way to go here.

---

<div class="post-metadata">

**Author:** ![tyler.robertson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tyler.robertson/32/18299_2.png) [@tyler.robertson](https://forum.inductiveautomation.com/u/tyler.robertson)\
**Post date:** [September 13, 2024, 3:36pm UTC](https://forum.inductiveautomation.com/t/alarm-pipeline-get-current-tag-value/95876/6 "2024-09-13T15:36:27Z")

</div>

Rgr that - in the same token, I'm looking to re-use the same alarm pipeline but change the roster depending on what tag is calling the pipeline, again script best friend?
