# Accessing documentation/ID in tag change script

**URL:** <https://forum.inductiveautomation.com/t/accessing-documentation-id-in-tag-change-script/42375>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [January 18, 2021, 9:45pm UTC](https://forum.inductiveautomation.com/t/accessing-documentation-id-in-tag-change-script/42375 "2021-01-18T21:45:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin.hayter](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@justin.hayter](https://forum.inductiveautomation.com/u/justin.hayter)\
**Post date:** [January 18, 2021, 9:45pm UTC](https://forum.inductiveautomation.com/t/accessing-documentation-id-in-tag-change-script/42375/1 "2021-01-18T21:45:40Z")

</div>

Hi there, currently using ignition 8.0 and looking to create a catch-all gateway script for tag changes.  
I am looking for a way to identify which tag was changed, I know that I can get the tag path/name, but this feels too loose to me, and would prefer to work with an ID of some sorts.  
I’ve played around with a tag change script, and have not been able to find an ID value in a Tag object at all. I could work with having an ID of some sort of Id in the documentation field of a tag, and either making an ID when creating tags, or having a script auto generate a random ID there. But I have not been able to access the documentation in the script.  
Maybe I’m missing something, as I’m new to ignition in general, but I hope somebody can help guide me in the right direction.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [January 18, 2021, 9:59pm UTC](https://forum.inductiveautomation.com/t/accessing-documentation-id-in-tag-change-script/42375/2 "2021-01-18T21:59:17Z")

</div>

You can read the documentation field from a tag with:  
`system.tag.readBlocking(['path/to/tag.documentation'])`

And no, I don’t believe there is an ID field. If there was, then moving tags around would also allow any tags with history to follow with it. Unfortunately this isn’t the case… (of course, IA _could_ edit the tag path of the moved tags in the history tables 🙂 hint hint [keep tag history values linked when tags are moved | Voters | Inductive Automation](https://ideas.inductiveautomation.com/ignition-features-and-ideas/p/keep-tag-history-values-linked-when-tags-are-moved) )
