# Reference other UDT's tags

**URL:** <https://forum.inductiveautomation.com/t/reference-other-udts-tags/83843>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [January 5, 2024, 1:19pm UTC](https://forum.inductiveautomation.com/t/reference-other-udts-tags/83843 "2024-01-05T13:19:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Om33](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@Om33](https://forum.inductiveautomation.com/u/Om33)\
**Post date:** [January 5, 2024, 1:19pm UTC](https://forum.inductiveautomation.com/t/reference-other-udts-tags/83843/1 "2024-01-05T13:19:15Z")

</div>

Hello,

I have an UDT with 5 Tags. I am writing a value change script for one of the tags. How can I access the value of the 4 other tags within that script? The script is a tag event script.

Thanks in advance for your help

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 5, 2024, 2:09pm UTC](https://forum.inductiveautomation.com/t/reference-other-udts-tags/83843/2 "2024-01-05T14:09:50Z")

</div>

Use [system.tag.readBlocking()](https://docs.inductiveautomation.com/display/DOC81/system.tag.readBlocking), providing the four tag paths in a list, and extracting the four values from the returned list.

I recommend something like this:

```auto
qvList = system.tag.readBlocking(['[.]peerA', '[.]peerB', '[provider]path/to/A', '[provider]path/to/B'])
peerA, peerB, A, B = [qv.value for qv in qvList]

```

---

<div class="post-metadata">

**Author:** ![Om33](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@Om33](https://forum.inductiveautomation.com/u/Om33)\
**Post date:** [January 5, 2024, 2:14pm UTC](https://forum.inductiveautomation.com/t/reference-other-udts-tags/83843/3 "2024-01-05T14:14:40Z")

</div>

Thanks a lot  
I have an another topic regarding my username, could you please change it?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 5, 2024, 2:15pm UTC](https://forum.inductiveautomation.com/t/reference-other-udts-tags/83843/4 "2024-01-05T14:15:41Z")

</div>

I don't have that permission. I'm not an IA employee.

---

<div class="post-metadata">

**Author:** ![Om33](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@Om33](https://forum.inductiveautomation.com/u/Om33)\
**Post date:** [January 5, 2024, 2:16pm UTC](https://forum.inductiveautomation.com/t/reference-other-udts-tags/83843/5 "2024-01-05T14:16:31Z")

</div>

Ahn okii, thanks

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 5, 2024, 4:54pm UTC](https://forum.inductiveautomation.com/t/reference-other-udts-tags/83843/7 "2024-01-05T16:54:46Z")

</div>

> [@Om33](#):
>
> does not react as expected

I have no idea what that means. And you did not follow my example. You really should use one call to readBlocking to get all four values.

Meanwhile, please post the rest of your code (not as a screenshot--use the preformatted text button in the comment editor to set up a code block) and post the error you get (also using the preformatted text button).
