# Alarm Notification: Clear notify only contacts who were Active notified

**URL:** <https://forum.inductiveautomation.com/t/alarm-notification-clear-notify-only-contacts-who-were-active-notified/16391>\
**Category:** Ignition\
**Created:** [December 21, 2017, 3:47pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-clear-notify-only-contacts-who-were-active-notified/16391 "2017-12-21T15:47:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwells](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cwells/32/35042_2.png) [@cwells](https://forum.inductiveautomation.com/u/cwells)\
**Post date:** [December 21, 2017, 3:47pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-clear-notify-only-contacts-who-were-active-notified/16391/1 "2017-12-21T15:47:19Z")

</div>

Hello,

My Active alarm pipeline goes through the roster notifying one contact at a time (using a non-zero Delay Between Messages and Direct Roster), with the Dropout Conditions as Acknowledged, Cleared, and Shelved. I am trying to have my Clear pipeline only notify contacts in that roster that were notified for the Active Message.

For example, operators A, B, and C are on the roster when an alarm becomes active. After A is notified, they acknowledge the alarm, stopping the Active pipeline. After the alarm clears, only A should be notified of the Clear.

Would I have to dynamically create a roster through using a Script Block to accomplish this, or is there an easier way?

Thanks.

---

<div class="post-metadata">

**Author:** ![denji26](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/denji26/32/5805_2.png) [@denji26](https://forum.inductiveautomation.com/u/denji26)\
**Post date:** [February 22, 2018, 10:43pm UTC](https://forum.inductiveautomation.com/t/alarm-notification-clear-notify-only-contacts-who-were-active-notified/16391/2 "2018-02-22T22:43:19Z")

</div>

Hi there,

I have just implemented this functionality on a project by using the database to track users who have already been notified.

I am using a calculated roster, and in my block I insert the EventID and userID into the database after the user is notified.

Then in my clear pipeline I SELECT all the rows with that EventID, build a calculated roster, notify all those users, then delete the rows from the database.

Hope that helps!

Dennis
