# Create UDT Instance from script

**URL:** <https://forum.inductiveautomation.com/t/create-udt-instance-from-script/62627>\
**Category:** Ignition\
**Tags:** ignition80, scripting, perspective\
**Created:** [August 3, 2022, 1:52pm UTC](https://forum.inductiveautomation.com/t/create-udt-instance-from-script/62627 "2022-08-03T13:52:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan.perretta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.perretta/32/75110_2.png) [@ryan.perretta](https://forum.inductiveautomation.com/u/ryan.perretta)\
**Post date:** [August 3, 2022, 1:52pm UTC](https://forum.inductiveautomation.com/t/create-udt-instance-from-script/62627/1 "2022-08-03T13:52:22Z")

</div>

Is there a way for me to create a new UDT instance from a script triggered by an event in Perspective? I have used system.tag.write... to create standard tags in the past, but can't seem to use it for UDTs. Thanks for the help!

---

<div class="post-metadata">

**Author:** ![djs](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@djs](https://forum.inductiveautomation.com/u/djs)\
**Post date:** [August 3, 2022, 2:12pm UTC](https://forum.inductiveautomation.com/t/create-udt-instance-from-script/62627/2 "2022-08-03T14:12:01Z")

</div>

You’ll want to use [system.tag.configure](https://docs.inductiveautomation.com/display/DOC81/system.tag.configure) with a _tagType_ of “UdtInstance” and a _tagId_ that is the name of your UDT. There’s examples in the docs.
