# Write value of a tag inside UDT in scripting

**URL:** <https://forum.inductiveautomation.com/t/write-value-of-a-tag-inside-udt-in-scripting/64342>\
**Category:** Ignition\
**Tags:** python, scripting, ignition81, perspective\
**Created:** [September 21, 2022, 5:02pm UTC](https://forum.inductiveautomation.com/t/write-value-of-a-tag-inside-udt-in-scripting/64342 "2022-09-21T17:02:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [September 21, 2022, 6:10pm UTC](https://forum.inductiveautomation.com/t/write-value-of-a-tag-inside-udt-in-scripting/64342/2 "2022-09-21T18:10:29Z")

</div>

Combining this post with your other [post](https://forum.inductiveautomation.com/t/dynamically-add-values-in-table-from-the-tags/64292/10), am I understanding correctly that you are dynamically creating a UDT Instance for each Job in a database table? If so why? What is the purpose of storing it in a database if you’re also going to store it in tags?

Also, if that is the case, I think you need to take a step back, because I’m not sure that is really the direction you want to go. In other words…Don’t do that.

Now, on to the actual question of the post:

To write to the value of a tag you use `system.tag.writeBlocking()`

```auto
system.tag.writeBlocking(['path/to/tag/'],['value to write'])

```

I’m not sure why you’re showing a TagConfigure script. If you create (dynamically or otherwise) a UDTInstance it will have all of the members in the UDT Definition. You would then write the value of the tag as shown above.

If you haven’t yet you should watch the free videos at [Browse the Lesson Library at Inductive University](https://inductiveuniversity.com/courses/ignition-overview/8.1)

Also, if you’re going to post screen shots of your scripts please also post pre-formatted text of the code (Use the `</>` button). It will help users to better help you.

---

_[View the full topic](https://forum.inductiveautomation.com/t/write-value-of-a-tag-inside-udt-in-scripting/64342)._
