# system.alarm.queryStatus with expression

**URL:** <https://forum.inductiveautomation.com/t/system-alarm-querystatus-with-expression/18514>\
**Category:** Ignition\
**Created:** [June 18, 2018, 7:34pm UTC](https://forum.inductiveautomation.com/t/system-alarm-querystatus-with-expression/18514 "2018-06-18T19:34:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ikenna.nwaogu](https://avatars.discourse-cdn.com/v4/letter/i/e274bd/32.png) [@ikenna.nwaogu](https://forum.inductiveautomation.com/u/ikenna.nwaogu)\
**Post date:** [June 18, 2018, 8:32pm UTC](https://forum.inductiveautomation.com/t/system-alarm-querystatus-with-expression/18514/3 "2018-06-18T20:32:35Z")

</div>

> [@phillip.bow](#):
>
> runScript("len(system.alarm.queryStatus(state=['ActiveUnacked'], includeSystem=False, all\_properties=[('Audience','=','Mine')]))")

Thanks a lot. I actually figured the syntax error. it also seem like you have to have at least 2 parameters for it the query to run. I will definitely keep the script in mind for future alarming needs. I know I have a bunch to come so I'll simplify it through this. Thanks again.

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-alarm-querystatus-with-expression/18514)._
