# Current tagpath with provider in a tag expression

**URL:** <https://forum.inductiveautomation.com/t/current-tagpath-with-provider-in-a-tag-expression/61450>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [July 1, 2022, 7:31pm UTC](https://forum.inductiveautomation.com/t/current-tagpath-with-provider-in-a-tag-expression/61450 "2022-07-01T19:31:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [July 1, 2022, 7:31pm UTC](https://forum.inductiveautomation.com/t/current-tagpath-with-provider-in-a-tag-expression/61450/1 "2022-07-01T19:31:45Z")

</div>

Can we obtain the current tagpath with provider in a tag expression in order to pass it to a function called in a runscript

---

<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 1, 2022, 7:41pm UTC](https://forum.inductiveautomation.com/t/current-tagpath-with-provider-in-a-tag-expression/61450/2 "2022-07-01T19:41:12Z")

</div>

Do you mean reference the tag path to the tag the expression is setting the value for?

To my knowledge a tag expression can not reference itself.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [July 1, 2022, 7:46pm UTC](https://forum.inductiveautomation.com/t/current-tagpath-with-provider-in-a-tag-expression/61450/3 "2022-07-01T19:46:44Z")

</div>

Yes, I would like to obtain the current tag provider or the fulltagpath

---

<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 1, 2022, 8:11pm UTC](https://forum.inductiveautomation.com/t/current-tagpath-with-provider-in-a-tag-expression/61450/4 "2022-07-01T20:11:11Z")

</div>

From the manual:

> When you are writing an expression for an expression Tag, you can only reference other Tag values.

There is no way to dynamically get the tag provider or tag path of the current tag.

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [July 2, 2022, 4:44pm UTC](https://forum.inductiveautomation.com/t/current-tagpath-with-provider-in-a-tag-expression/61450/5 "2022-07-02T16:44:42Z")

</div>

If you make the tag part of a UDT you can do this easily.

---

<div class="post-metadata">

**Author:** ![Flavia\_Delli](https://avatars.discourse-cdn.com/v4/letter/f/f17d59/32.png) [@Flavia\_Delli](https://forum.inductiveautomation.com/u/Flavia_Delli)\
**Post date:** [July 21, 2023, 6:26am UTC](https://forum.inductiveautomation.com/t/current-tagpath-with-provider-in-a-tag-expression/61450/6 "2023-07-21T06:26:41Z")

</div>

You should try using  
{this.path}

It seems working for us.
