# Programmatically determining alarm inheritance from a UDT

**URL:** <https://forum.inductiveautomation.com/t/programmatically-determining-alarm-inheritance-from-a-udt/61357>\
**Category:** Ignition\
**Tags:** ignition81, scripting, perspective\
**Created:** [June 29, 2022, 4:09pm UTC](https://forum.inductiveautomation.com/t/programmatically-determining-alarm-inheritance-from-a-udt/61357 "2022-06-29T16:09:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![travis.broussard](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@travis.broussard](https://forum.inductiveautomation.com/u/travis.broussard)\
**Post date:** [June 29, 2022, 4:09pm UTC](https://forum.inductiveautomation.com/t/programmatically-determining-alarm-inheritance-from-a-udt/61357/1 "2022-06-29T16:09:04Z")

</div>

Is it possible to programmatically determine if a particular alarm, on a particular tag, is inherited from a UDT (and thus, unable to be deleted)?

---

<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:** [June 29, 2022, 5:48pm UTC](https://forum.inductiveautomation.com/t/programmatically-determining-alarm-inheritance-from-a-udt/61357/2 "2022-06-29T17:48:26Z")

</div>

If you add `typeId` to the tag path it will return null if not UDT and return the path of UDT if is a UDT.

Example,

```auto
print system.tag.read('[TagProv]myTag.typeId').value

```

Is this helpful for you?

---

<div class="post-metadata">

**Author:** ![travis.broussard](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@travis.broussard](https://forum.inductiveautomation.com/u/travis.broussard)\
**Post date:** [June 29, 2022, 6:48pm UTC](https://forum.inductiveautomation.com/t/programmatically-determining-alarm-inheritance-from-a-udt/61357/3 "2022-06-29T18:48:34Z")

</div>

Not quite, but thank you for the response. The tag is part of an instance of a UDT. The UDT itself has a few alarms configured on some member tags. There are also some additional alarms created on particular instances of that UDT.

What I’m trying to determine programmatically is if a particular alarm is one that is inherited from the UDT itself or if its one of the alarms created on that specific tag only.
