# Scripting an Alarm

**URL:** <https://forum.inductiveautomation.com/t/scripting-an-alarm/74595>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 5, 2023, 8:55pm UTC](https://forum.inductiveautomation.com/t/scripting-an-alarm/74595 "2023-06-05T20:55:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grace\_Tarler](https://avatars.discourse-cdn.com/v4/letter/g/f0a364/32.png) [@Grace\_Tarler](https://forum.inductiveautomation.com/u/Grace_Tarler)\
**Post date:** [June 5, 2023, 8:55pm UTC](https://forum.inductiveautomation.com/t/scripting-an-alarm/74595/1 "2023-06-05T20:55:41Z")

</div>

I am still new to ignition and I am using the perspective 8.1 module. I was wondering if I would be able to script something in the onActionPerformed to trigger alarm so that if they pressed the button they would automatically send an email to a specific rooster.

I tried doing an individual memory tag of just 1 or 0 to send the alarm and email through a pipeline but seems very repetitive and not really what I am trying to do.

Any advice if I can do a scripting or other methods?

---

<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:** [June 5, 2023, 9:09pm UTC](https://forum.inductiveautomation.com/t/scripting-an-alarm/74595/2 "2023-06-05T21:09:07Z")

</div>

If you just want to send an email, just send an email:  
[https://docs.inductiveautomation.com/display/DOC81/system.net.sendEmail](https://docs.inductiveautomation.com/display/DOC81/system.net.sendEmail)

No need to write to a tag and trigger an alarm pipeline.

---

<div class="post-metadata">

**Author:** ![Grace\_Tarler](https://avatars.discourse-cdn.com/v4/letter/g/f0a364/32.png) [@Grace\_Tarler](https://forum.inductiveautomation.com/u/Grace_Tarler)\
**Post date:** [June 6, 2023, 11:53am UTC](https://forum.inductiveautomation.com/t/scripting-an-alarm/74595/3 "2023-06-06T11:53:33Z")

</div>

Sounds great I will look into that. The only thing is I want some users to be able to see all the active "alarms" that sent emails to see what they need to address first depending on priority from other users.
