# Read alarm priority

**URL:** <https://forum.inductiveautomation.com/t/read-alarm-priority/15625>\
**Category:** Ignition\
**Created:** [October 10, 2017, 4:24pm UTC](https://forum.inductiveautomation.com/t/read-alarm-priority/15625 "2017-10-10T16:24:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [October 10, 2017, 4:24pm UTC](https://forum.inductiveautomation.com/t/read-alarm-priority/15625/1 "2017-10-10T16:24:23Z")

</div>

is there a way to read tag’s alarm priority with script ?

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [October 10, 2017, 4:41pm UTC](https://forum.inductiveautomation.com/t/read-alarm-priority/15625/2 "2017-10-10T16:41:56Z")

</div>

Depends what you are looking for exactly. If you are looking for the highest priority of an alarm on a tag, something like

```auto
system.tag.read("Path/To/Tag.AlarmHighestUnackPriority")

```

would work.

If you are looking for priorities of configured alarms, you could do the following:

```auto
t = system.tag.browseConfiguration("Test Boolean",False)
print t.toJSON()

```

which resulted in

```auto
  {
    "dataType": "Boolean",
    "alarms": [
      {
        "setpointA": 1.0,
        "name": "Alarm",
        "priority": "Medium"
      },
      {
        "setpointA": 2.0,
        "name": "Alarm 1"
      }
    ],
    "name": "Test Boolean",
    "value": false
  }

```

If the value is not default, it will show. For alarm priorities, the default is Low.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [October 10, 2017, 5:22pm UTC](https://forum.inductiveautomation.com/t/read-alarm-priority/15625/3 "2017-10-10T17:22:46Z")

</div>

Thanks @Kyle_Chase, I was looking for the second one!
