# system.alarm.queryStatus() on associated data

**URL:** <https://forum.inductiveautomation.com/t/system-alarm-querystatus-on-associated-data/15360>\
**Category:** Ignition\
**Created:** [September 15, 2017, 10:12am UTC](https://forum.inductiveautomation.com/t/system-alarm-querystatus-on-associated-data/15360 "2017-09-15T10:12:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![WildeKurt](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@WildeKurt](https://forum.inductiveautomation.com/u/WildeKurt)\
**Post date:** [November 22, 2017, 10:56pm UTC](https://forum.inductiveautomation.com/t/system-alarm-querystatus-on-associated-data/15360/2 "2017-11-22T22:56:21Z")

</div>

The following will get the Associated Data item called "Alarm Number" and print it's value. Event data is available from the object returned from the queryAlarmStatus function.

> propertyName = "Alarm Number" for p in eventData: -\> print type(p.getProperty()),p.getValue() -\> if str(p.getProperty()) == propertyName: -\>-\> print p.getValue()

---

_[View the full topic](https://forum.inductiveautomation.com/t/system-alarm-querystatus-on-associated-data/15360)._
