# Read/Write Alarm Priority

**URL:** <https://forum.inductiveautomation.com/t/read-write-alarm-priority/45923>\
**Category:** Ignition\
**Tags:** ignition80, scripting\
**Created:** [April 22, 2021, 5:58pm UTC](https://forum.inductiveautomation.com/t/read-write-alarm-priority/45923 "2021-04-22T17:58:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [April 22, 2021, 5:58pm UTC](https://forum.inductiveautomation.com/t/read-write-alarm-priority/45923/1 "2021-04-22T17:58:01Z")

</div>

v8.1.4, I’m trying to read, and then ultimately write, the priority of a configured alarm.

```auto
path = 'MyTagPath'
alarm = system.tag.getConfiguration(path)
print alarm[0]['priority']

```

and get KeyError: ‘priority’. I tested [‘name’] and that works.  
How can I get the value for priority?

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [April 22, 2021, 6:49pm UTC](https://forum.inductiveautomation.com/t/read-write-alarm-priority/45923/2 "2021-04-22T18:49:52Z")

</div>

Looks like you can get access to it to read via system.tag.readBlocking…

```auto
system.tag.readBlocking(['[default]testAlarm/Alarms/Alarm.Priority'])

```

However it doesn’t seem like writing to it is supported.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [April 22, 2021, 6:57pm UTC](https://forum.inductiveautomation.com/t/read-write-alarm-priority/45923/3 "2021-04-22T18:57:11Z")

</div>

Thank you. I was way off.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [April 22, 2021, 8:01pm UTC](https://forum.inductiveautomation.com/t/read-write-alarm-priority/45923/4 "2021-04-22T20:01:05Z")

</div>

I noticed this post, [Alarm Priority Type Error](http://forum.inductiveautomation.com/t/alarm-priority-type-error/23255)  
Can we not write to the priority anymore?

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [April 23, 2021, 2:22am UTC](https://forum.inductiveautomation.com/t/read-write-alarm-priority/45923/5 "2021-04-23T02:22:17Z")

</div>

It was easier to create my own associated data that I can easily read/write.

---

<div class="post-metadata">

**Author:** ![AndrewG](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AndrewG](https://forum.inductiveautomation.com/u/AndrewG)\
**Post date:** [April 23, 2021, 4:18pm UTC](https://forum.inductiveautomation.com/t/read-write-alarm-priority/45923/6 "2021-04-23T16:18:12Z")

</div>

This is what I ended up doing to write to alarm properties as well, for what its worth. I drafted a couple posts to suggest doing this, but was hoping someone might come along with a more correct/streamlined solution. Glad you got it working.
