# Get UDT parameters in event script

**URL:** <https://forum.inductiveautomation.com/t/get-udt-parameters-in-event-script/98279>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [November 6, 2024, 2:29pm UTC](https://forum.inductiveautomation.com/t/get-udt-parameters-in-event-script/98279 "2024-11-06T14:29:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jhonny\_Palas](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jhonny\_Palas](https://forum.inductiveautomation.com/u/Jhonny_Palas)\
**Post date:** [November 6, 2024, 2:29pm UTC](https://forum.inductiveautomation.com/t/get-udt-parameters-in-event-script/98279/1 "2024-11-06T14:29:33Z")

</div>

Hi all, is there a way to access from a 'Values ​​​​​​​​​​​​​​​​​​​​​​Events -- valueChanged) the parameters of the UDT it belongs to?

I tried with:  
parameters=system.tag.readBlocking(["[.].parameters"])[0].value

and it prints all the information of my udt, but when I try to access  
parameters.get("Parameter[DBNumber]").value  
it gives me an error on the type..

---

<div class="post-metadata">

**Author:** ![Samuel\_Sueur](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Samuel\_Sueur](https://forum.inductiveautomation.com/u/Samuel_Sueur)\
**Post date:** [November 6, 2024, 2:32pm UTC](https://forum.inductiveautomation.com/t/get-udt-parameters-in-event-script/98279/2 "2024-11-06T14:32:03Z")

</div>

I can't test this right now, but I'm pretty sure you can get all the parameters by using the argument `tag` in the valueChanged definition.

Try using `tag["parameters"]["DBNumber"]` ?

EDIT: Nevermind I already have an example about this in one of my UDTs. It's for a "qualityChanged" event script but it should behave the same.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/b/8b0f934a926c4187f6c6816656f75065e4fd150b.png)

---

<div class="post-metadata">

**Author:** ![Jhonny\_Palas](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@Jhonny\_Palas](https://forum.inductiveautomation.com/u/Jhonny_Palas)\
**Post date:** [November 6, 2024, 2:39pm UTC](https://forum.inductiveautomation.com/t/get-udt-parameters-in-event-script/98279/3 "2024-11-06T14:39:31Z")

</div>

Hi Samuel,  
thank you very much, now it works correctly
