# Alarm Pipeline Notifcation

**URL:** <https://forum.inductiveautomation.com/t/alarm-pipeline-notifcation/8263>\
**Category:** Ignition\
**Created:** [April 4, 2014, 7:06pm UTC](https://forum.inductiveautomation.com/t/alarm-pipeline-notifcation/8263 "2014-04-04T19:06:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcarritt](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mcarritt](https://forum.inductiveautomation.com/u/mcarritt)\
**Post date:** [April 4, 2014, 7:06pm UTC](https://forum.inductiveautomation.com/t/alarm-pipeline-notifcation/8263/1 "2014-04-04T19:06:19Z")

</div>

I have a custom data type. The way i would like this to work is that datatype has a sub-tag (boolean) named “NotifEn”. If this is true, then the roster I’ve set up will receive an email. If false, they won’t.

I tried making an expression for the name of the pipeline in the alarm properties like so:

if {[.]NotifEn} then “PipeLine” else 0

This didnt work.

I tried making an expression block in the alarm pipline diagram with the expression:

if ( {name}.NotifEn == 1 ) then 1 else 0

which also didnt work. Any help would be great! I’ve tested it and the alarm works if I just set the pipeline name and remove the expression block, but I would like the admin to have the ability to check/ uncheck alarms to send notifications as they see fit. Thanks!

---

<div class="post-metadata">

**Author:** ![RRRancher](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@RRRancher](https://forum.inductiveautomation.com/u/RRRancher)\
**Post date:** [April 4, 2014, 8:50pm UTC](https://forum.inductiveautomation.com/t/alarm-pipeline-notifcation/8263/2 "2014-04-04T20:50:46Z")

</div>

The Active Pipeline property is looking for a string, if I’m not mistaken. Maybe your expression should read

```auto
if {[.]NotifEn} then "PipeLine" else ""
```

instead. If that doesn’t work, you might try creating a pipeline that doesn’t do anything and then use something like this

```auto
if {[.]NotifEn} then "PipeLine" else "DoNothingPipeline"
```

Sorry, I don’t have time to test it right now.
