# Find UDT instance name from full tagPath

**URL:** <https://forum.inductiveautomation.com/t/find-udt-instance-name-from-full-tagpath/40845>\
**Category:** Ignition\
**Created:** [November 20, 2020, 4:20pm UTC](https://forum.inductiveautomation.com/t/find-udt-instance-name-from-full-tagpath/40845 "2020-11-20T16:20:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [November 21, 2020, 8:41am UTC](https://forum.inductiveautomation.com/t/find-udt-instance-name-from-full-tagpath/40845/4 "2020-11-21T08:41:19Z")

</div>

You can't use your solution here?

> [@Grab the UDT instance name and parent folder name](http://forum.inductiveautomation.com/t/grab-the-udt-instance-name-and-parent-folder-name/20521/2):
>
> I find some solution by using {InstanceName} and {TagName} pre-define parameters. {PathToParentFolder} is return folder path with \ as seperator which i need dot . instead Does anyone know a solution to replace \ with . for {PathToParentFolder}? Thanks.

Otherwise, I think you'll have to use a script, as @mmaynard said.

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

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/find-udt-instance-name-from-full-tagpath/40845)._
