# How to have different Custom Messages for an alarm for the active/clear pipelines?

**URL:** <https://forum.inductiveautomation.com/t/how-to-have-different-custom-messages-for-an-alarm-for-the-active-clear-pipelines/65035>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [October 10, 2022, 9:49pm UTC](https://forum.inductiveautomation.com/t/how-to-have-different-custom-messages-for-an-alarm-for-the-active-clear-pipelines/65035 "2022-10-10T21:49:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cole\_Townsend](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cole_townsend/32/53149_2.png) [@Cole\_Townsend](https://forum.inductiveautomation.com/u/Cole_Townsend)\
**Post date:** [October 10, 2022, 9:49pm UTC](https://forum.inductiveautomation.com/t/how-to-have-different-custom-messages-for-an-alarm-for-the-active-clear-pipelines/65035/1 "2022-10-10T21:49:35Z")

</div>

Hello,

I am trying to send a message whenever a certain alarm clears, but I am having trouble finding a way to create a custom message that will be dynamic in regards to whether the alarm is cleared or not. Does anyone have a solution that might look like the following?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/7/a7338d0cdc9792949820b5751e2f7b7f3161f4b2.png)

I'm not sure what I would put as the condition in this if statement and none of the alarm properties jump out to me as being usable in differentiating whether this is a clear or active alarm.

Thanks for any help you can give!

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [October 10, 2022, 10:31pm UTC](https://forum.inductiveautomation.com/t/how-to-have-different-custom-messages-for-an-alarm-for-the-active-clear-pipelines/65035/2 "2022-10-10T22:31:48Z")

</div>

Alarms have a few parameters that might help with this [Alarm Event Properties Reference - Ignition User Manual 8.0 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC80/Alarm+Event+Properties+Reference#AlarmEventPropertiesReference-AlarmRuntimeProperties)

Either `{State}` or `{EventState}`  
I can't remember which property, but I remember on an older version that one of them wasn't working properly. I have no clue if they were fixed in newer versions so you should test to see that they perform the way you're expecting

---

<div class="post-metadata">

**Author:** ![Cole\_Townsend](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cole_townsend/32/53149_2.png) [@Cole\_Townsend](https://forum.inductiveautomation.com/u/Cole_Townsend)\
**Post date:** [October 11, 2022, 1:38pm UTC](https://forum.inductiveautomation.com/t/how-to-have-different-custom-messages-for-an-alarm-for-the-active-clear-pipelines/65035/3 "2022-10-11T13:38:11Z")

</div>

Thank you! {EventState} is what I was looking for. That property isn't shown in the alarm configuration designer, the only way to see it is through the documentation and I must have missed it.

---

<div class="post-metadata">

**Author:** ![Matthew.gaitan](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@Matthew.gaitan](https://forum.inductiveautomation.com/u/Matthew.gaitan)\
**Post date:** [October 11, 2022, 2:16pm UTC](https://forum.inductiveautomation.com/t/how-to-have-different-custom-messages-for-an-alarm-for-the-active-clear-pipelines/65035/4 "2022-10-11T14:16:26Z")

</div>

Awesome! The documentation is how I initially discovered it as well. Glad it was what you needed 🙂
