# Alarm notification + DB query + Notification Block

**URL:** <https://forum.inductiveautomation.com/t/alarm-notification-db-query-notification-block/57140>\
**Category:** Ignition\
**Tags:** ignition80, database, ignition81\
**Created:** [March 12, 2022, 7:26am UTC](https://forum.inductiveautomation.com/t/alarm-notification-db-query-notification-block/57140 "2022-03-12T07:26:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FreddyR](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@FreddyR](https://forum.inductiveautomation.com/u/FreddyR)\
**Post date:** [March 12, 2022, 7:26am UTC](https://forum.inductiveautomation.com/t/alarm-notification-db-query-notification-block/57140/1 "2022-03-12T07:26:49Z")

</div>

Hi everyone,

I have added Alarms to UDT and linked them to a Pipeline notification.  
How can I activate the pipeline based on DB query status?  
In the other words, I want some of my alarms filtered out based on status in DB?

An another question,  
I also use calculated Roster on my Notification Block by querying users from Database. How can notify each user with a specific alarm not all active alarms from UDT instances?

Are these possible?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 12, 2022, 10:50am UTC](https://forum.inductiveautomation.com/t/alarm-notification-db-query-notification-block/57140/2 "2022-03-12T10:50:04Z")

</div>

I’ve never tried to do either but for the first part I would probably -

- Create a query tag with a boolen data type. Set the execution mode appropriate to the response you need while avoiding setting the execution rate too frequent.
- Bind the alarm filter to the query tag.
