# Reference Tag Parent folder

**URL:** <https://forum.inductiveautomation.com/t/reference-tag-parent-folder/32996>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [March 11, 2020, 10:45am UTC](https://forum.inductiveautomation.com/t/reference-tag-parent-folder/32996 "2020-03-11T10:45:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joostjojo](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@joostjojo](https://forum.inductiveautomation.com/u/joostjojo)\
**Post date:** [March 11, 2020, 10:45am UTC](https://forum.inductiveautomation.com/t/reference-tag-parent-folder/32996/1 "2020-03-11T10:45:06Z")

</div>

Hi,

I have a UDT which may contain tags from either a Siemens plc or a Allen bradley.

The udt structure is as follows:

UDT  
+OPC (Folder)  
+Siemens (Folder)  
+localtohmi (Folder)  
-Testinfolder (OPC tag)  
+Allen bradley (Folder)  
+localtohmi (Folder)  
-Testinfolder (OPC tag)

+localtohmi (Folder)  
-Testinfolder (Reference tag)

I have more tags in the udt but this is the structure I have the question about.  
At the reference tag i can do the following to get the right tag:

- [.]…/OPC/{PLCBrand}/localtohmi/{TagName}

However I want to have the folder “localtohmi” to be dynamic.  
I know I can read the path to the tag and to the parent folder, but I can not just use only the name of the parent folder. It is possible to do with an expression, but I need the tag to be writable as well.

I want something like this:

- [.]…/OPC/{PLCBrand}/{[.]}/{TagName}
