# Get alarm property "Shelving Allowed" with script

**URL:** <https://forum.inductiveautomation.com/t/get-alarm-property-shelving-allowed-with-script/21110>\
**Category:** Ignition\
**Created:** [November 28, 2018, 2:23pm UTC](https://forum.inductiveautomation.com/t/get-alarm-property-shelving-allowed-with-script/21110 "2018-11-28T14:23:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philcr](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@Philcr](https://forum.inductiveautomation.com/u/Philcr)\
**Post date:** [November 28, 2018, 2:23pm UTC](https://forum.inductiveautomation.com/t/get-alarm-property-shelving-allowed-with-script/21110/1 "2018-11-28T14:23:17Z")

</div>

Hi,

is there a way to get the property “Shelving Allowed” through scripting?

Thank you

---

<div class="post-metadata">

**Author:** ![Philcr](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@Philcr](https://forum.inductiveautomation.com/u/Philcr)\
**Post date:** [November 28, 2018, 2:43pm UTC](https://forum.inductiveautomation.com/t/get-alarm-property-shelving-allowed-with-script/21110/2 "2018-11-28T14:43:41Z")

</div>

I found it using the function system.tag.getAlarmStates(), but that uses a tag path and some iterations need to be done if you have more than 1 alarm on a tag.

Is it possible to find the shelvingAllowed for a specific alarm directly?
