# Retrieve History Provider Via Script

**URL:** <https://forum.inductiveautomation.com/t/retrieve-history-provider-via-script/74435>\
**Category:** Ignition\
**Created:** [June 1, 2023, 1:26pm UTC](https://forum.inductiveautomation.com/t/retrieve-history-provider-via-script/74435 "2023-06-01T13:26:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alainia.spencer](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@alainia.spencer](https://forum.inductiveautomation.com/u/alainia.spencer)\
**Post date:** [June 1, 2023, 1:26pm UTC](https://forum.inductiveautomation.com/t/retrieve-history-provider-via-script/74435/1 "2023-06-01T13:26:45Z")

</div>

Is there a way to retrieve the history provider information from a tag path via script?

I'm using the power chart component in Ignition and would like to bind the data source property to a tag path, however, the path needs to be converted to a historical format in order to retrieve the data. The help documentation states that it will automatically convert the tag path property, however, this functionality seems to work for only tags that are within the default tag provider.

I need the following prefix:

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

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

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

---

<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:** [June 1, 2023, 1:28pm UTC](https://forum.inductiveautomation.com/t/retrieve-history-provider-via-script/74435/2 "2023-06-01T13:28:01Z")

</div>

You can read the tag's history properties to gather the information needed to produce that format.

---

<div class="post-metadata">

**Author:** ![alainia.spencer](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@alainia.spencer](https://forum.inductiveautomation.com/u/alainia.spencer)\
**Post date:** [June 1, 2023, 2:49pm UTC](https://forum.inductiveautomation.com/t/retrieve-history-provider-via-script/74435/3 "2023-06-01T14:49:47Z")

</div>

I was wrong, it actually does convert the tag path to the correct historical format regardless of what your tag provider name is. I had a mistake on my end which caused the functionality not to work.

Thanks
