# Pull Alarms from a Named Query

**URL:** <https://forum.inductiveautomation.com/t/pull-alarms-from-a-named-query/53360>\
**Category:** Ignition\
**Created:** [November 22, 2021, 8:48pm UTC](https://forum.inductiveautomation.com/t/pull-alarms-from-a-named-query/53360 "2021-11-22T20:48:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkhoshroo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pkhoshroo/32/26801_2.png) [@pkhoshroo](https://forum.inductiveautomation.com/u/pkhoshroo)\
**Post date:** [November 22, 2021, 8:48pm UTC](https://forum.inductiveautomation.com/t/pull-alarms-from-a-named-query/53360/1 "2021-11-22T20:48:34Z")

</div>

Is it possible to pull the alarms to the alarm status table or alarm journal from a named query?  
I want to be able to limit the alarms to the most recent 50 alarms. I could not find a way to do this except on the SQL side, which is what I did in my named query. Is it possible to pull that data to alarm tables?
