# Can't find "Label" in Tag Events Scripts - Alarm active

**URL:** <https://forum.inductiveautomation.com/t/cant-find-label-in-tag-events-scripts-alarm-active/57580>\
**Category:** Ignition\
**Created:** [March 24, 2022, 1:03pm UTC](https://forum.inductiveautomation.com/t/cant-find-label-in-tag-events-scripts-alarm-active/57580 "2022-03-24T13:03:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [March 24, 2022, 1:03pm UTC](https://forum.inductiveautomation.com/t/cant-find-label-in-tag-events-scripts-alarm-active/57580/1 "2022-03-24T13:03:48Z")

</div>

Good afternoon,

I’m trying to send an email when one alarm is active. I’m able to do that working on the “Tag Event Scripts → Alarm Active” of the alarm tag that I’ve to check.

Now I would like to put in the body some information about the alarm, but I can’t find how to put in the text the “Label” (where I have the description on that alarm).

In the argument already presents I can’t find it.

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [March 24, 2022, 1:46pm UTC](https://forum.inductiveautomation.com/t/cant-find-label-in-tag-events-scripts-alarm-active/57580/2 "2022-03-24T13:46:57Z")

</div>

> [@Aiasa21](#):
>
> I’m trying to send an email when one alarm is active

Do you mean 'send an email when alarm transitions to active' ? If that's the case, then alarm notifications pipelines are probably a better place to handle this than tag event scripts. I'm pretty sure the label is available there.

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [March 24, 2022, 3:22pm UTC](https://forum.inductiveautomation.com/t/cant-find-label-in-tag-events-scripts-alarm-active/57580/3 "2022-03-24T15:22:50Z")

</div>

Yes that’s what I mean.

At the moment we don’t have the alarme notifications pipelines module, they ask me to make some test just to try and eventually will think about the new module.

Thanks for the help

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 24, 2022, 3:31pm UTC](https://forum.inductiveautomation.com/t/cant-find-label-in-tag-events-scripts-alarm-active/57580/4 "2022-03-24T15:31:59Z")

</div>

This should get it for you.

```python
	labelPath = '{}/Alarms/{}.Label'.format(tagPath, alarmName)
	label = system.tag.readBlocking([labelPath])[0].value

```

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [March 24, 2022, 4:26pm UTC](https://forum.inductiveautomation.com/t/cant-find-label-in-tag-events-scripts-alarm-active/57580/5 "2022-03-24T16:26:11Z")

</div>

Thank you very much for the help, that’s exactly what I need!

Have a nice day
