# PathToParentFolder from a standard tag

**URL:** <https://forum.inductiveautomation.com/t/pathtoparentfolder-from-a-standard-tag/62204>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [July 22, 2022, 9:58am UTC](https://forum.inductiveautomation.com/t/pathtoparentfolder-from-a-standard-tag/62204 "2022-07-22T09:58:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ISEMAREN\_AAG](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@ISEMAREN\_AAG](https://forum.inductiveautomation.com/u/ISEMAREN_AAG)\
**Post date:** [July 22, 2022, 9:58am UTC](https://forum.inductiveautomation.com/t/pathtoparentfolder-from-a-standard-tag/62204/1 "2022-07-22T09:58:16Z")

</div>

Hello.

From a **UDT** you can access the default parameter **{PathToParentFolder}** , but you cannot from a **standard tag.**  
Why?  
Is there a way to get the parent folder path from a standard tag?

**UDT**

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/b/fb354d3eb6433aa119192d2a03c550086e8712a3.png)

**Standard Tag**

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/1/c13e977c5e73129bb796a1d595887bdb06e61245.png)

Best Regards.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [July 22, 2022, 12:08pm UTC](https://forum.inductiveautomation.com/t/pathtoparentfolder-from-a-standard-tag/62204/2 "2022-07-22T12:08:52Z")

</div>

For expression tags you would use relative tag paths to traverse the tag tree structure.

See this page in the manual for an explanation of how relative paths work.

[https://docs.inductiveautomation.com/display/DOC81/Tag+Paths](https://docs.inductiveautomation.com/display/DOC81/Tag+Paths)

---

<div class="post-metadata">

**Author:** ![ISEMAREN\_AAG](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@ISEMAREN\_AAG](https://forum.inductiveautomation.com/u/ISEMAREN_AAG)\
**Post date:** [July 22, 2022, 1:44pm UTC](https://forum.inductiveautomation.com/t/pathtoparentfolder-from-a-standard-tag/62204/3 "2022-07-22T13:44:02Z")

</div>

I don’t need the position in the Parent tag, I need to know the path of the Parent tag. That is, I need a text string.  
With {[.]} you are placed on the path of the parent tag, but you don’t get the text string of that path.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [July 23, 2022, 8:00am UTC](https://forum.inductiveautomation.com/t/pathtoparentfolder-from-a-standard-tag/62204/4 "2022-07-23T08:00:22Z")

</div>

Can you explain your use case ? Why do you need that path, what are you trying to do (and NOT how you’re trying to do it) ?

---

<div class="post-metadata">

**Author:** ![ISEMAREN\_AAG](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@ISEMAREN\_AAG](https://forum.inductiveautomation.com/u/ISEMAREN_AAG)\
**Post date:** [July 26, 2022, 8:54am UTC](https://forum.inductiveautomation.com/t/pathtoparentfolder-from-a-standard-tag/62204/5 "2022-07-26T08:54:02Z")

</div>

Good morning.

I need to save in a tag the path of the tag itself, which can change dynamically.  
It would be very easy if {PathToParentFolder} could be used in a Standard Tag.

Best Regards.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 26, 2022, 9:24am UTC](https://forum.inductiveautomation.com/t/pathtoparentfolder-from-a-standard-tag/62204/6 "2022-07-26T09:24:49Z")

</div>

> [@ISEMAREN\_AAG](#):
>
> I need to save in a tag the path of the tag itself, which can change dynamically.

But why? This is what Pascal is asking.

There are options using a tag change or gateway event script that will have the tag path.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 26, 2022, 12:12pm UTC](https://forum.inductiveautomation.com/t/pathtoparentfolder-from-a-standard-tag/62204/7 "2022-07-26T12:12:14Z")

</div>

> [@ISEMAREN\_AAG](#):
>
> It would be very easy if {PathToParentFolder} could be used in a Standard Tag.

It cannot be, and likely won't be, and even if it could, it would be in a future version that doesn't solve your current problem. So _ **give it up** _. Please explain _ **why** _ you need this--what are you going to _ **do** _ with that tagpath--so we can help you arrive at a solution to your **task** by some other method.
