# Retrieving the UDT tag path from instance tag path

**URL:** <https://forum.inductiveautomation.com/t/retrieving-the-udt-tag-path-from-instance-tag-path/35810>\
**Category:** Ignition\
**Tags:** vision, ignition79\
**Created:** [June 18, 2020, 10:27pm UTC](https://forum.inductiveautomation.com/t/retrieving-the-udt-tag-path-from-instance-tag-path/35810 "2020-06-18T22:27:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![roger\_larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/roger_larson/32/8574_2.png) [@roger\_larson](https://forum.inductiveautomation.com/u/roger_larson)\
**Post date:** [June 19, 2020, 12:39am UTC](https://forum.inductiveautomation.com/t/retrieving-the-udt-tag-path-from-instance-tag-path/35810/2 "2020-06-19T00:39:28Z")

</div>

I’m assuming you are in Ignition v7.9.x, but you might be able to do something like this:

```auto
tagPath = "[default]Path/To/Tag/Line 2/Filler.typeId"
typeId = system.tag.read(tagPath).value
print typeId

```

I don’t have 7.9 on-hand to test that out, but I am curious as to the solution.

I found that in Ignition 8.0, this seemed to work:

```auto
tags = system.tag.getConfiguration(tagPath)
for tag in tags:
	tagType = tag['tagType']
	if str(tagType) == 'UdtInstance':
		typeId = str(tag['typeId'])
	    print typeId	

```

Cheers,  
Roger

---

_[View the full topic](https://forum.inductiveautomation.com/t/retrieving-the-udt-tag-path-from-instance-tag-path/35810)._
