# Example of tag paths and values in system.tag.storeTagHistory function?

**URL:** <https://forum.inductiveautomation.com/t/example-of-tag-paths-and-values-in-system-tag-storetaghistory-function/16092>\
**Category:** Ignition\
**Tags:** ignition78, scripting\
**Created:** [November 22, 2017, 1:01pm UTC](https://forum.inductiveautomation.com/t/example-of-tag-paths-and-values-in-system-tag-storetaghistory-function/16092 "2017-11-22T13:01:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 22, 2017, 1:01pm UTC](https://forum.inductiveautomation.com/t/example-of-tag-paths-and-values-in-system-tag-storetaghistory-function/16092/1 "2017-11-22T13:01:16Z")

</div>

I’m exploring an alternative approach to solving my [previous question](http://forum.inductiveautomation.com/t/triggering-history-for-a-group-of-tags-when-one-member-changes/16091).

- My tags are in a UDT.
- I want to write all the UDT tags to the History Provider on change of the “Total” tag.

Can someone give me guidance on how to set the paths and values to reference my UDT tags in an valueChanged event script?

system.tag.storeTagHistory(“myHistoryProvider”, “myTagProvider”, “ **paths** ”, system.tag.read("**[.]Weight**"), “192”, **system.date.now()**)

i.e., What’s the simplest syntax for each of the **bold** items above? For example, how do I reference the Weight value in the same UDT?

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8a93554f1c259dd7525a67580d6acc23c1ad39e8.png)

Many thanks.

---

_[View the full topic](https://forum.inductiveautomation.com/t/example-of-tag-paths-and-values-in-system-tag-storetaghistory-function/16092)._
