# Use system.tag,queryTagHistory from a remote provider

**URL:** <https://forum.inductiveautomation.com/t/use-system-tag-querytaghistory-from-a-remote-provider/82776>\
**Category:** Ignition\
**Created:** [December 6, 2023, 12:53pm UTC](https://forum.inductiveautomation.com/t/use-system-tag-querytaghistory-from-a-remote-provider/82776 "2023-12-06T12:53:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_coor](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@Sebastian\_coor](https://forum.inductiveautomation.com/u/Sebastian_coor)\
**Post date:** [December 6, 2023, 12:53pm UTC](https://forum.inductiveautomation.com/t/use-system-tag-querytaghistory-from-a-remote-provider/82776/1 "2023-12-06T12:53:56Z")

</div>

Hi!

I have a remote provider and its working fine when using easy chart, but on this project I need to get the data from scripts and I can't make it work using system.tag.queryTagHistory([tagPath],startDate,endDate)  
It works fine when the tag is on a local tag provider but i dont get any data when tags are from a remote provider, but as I said if I use easy chart I do see historcal data from the tag from the remote provider

Any tips???

---

<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:** [December 6, 2023, 1:15pm UTC](https://forum.inductiveautomation.com/t/use-system-tag-querytaghistory-from-a-remote-provider/82776/2 "2023-12-06T13:15:15Z")

</div>

Use fully-qualified historical tagpaths. Documented here:

[https://docs.inductiveautomation.com/display/DOC81/Export+Tag+Historian+to+CSV#ExportTagHistoriantoCSV-HistoryTagSearchandExport](https://docs.inductiveautomation.com/display/DOC81/Export+Tag+Historian+to+CSV#ExportTagHistoriantoCSV-HistoryTagSearchandExport)

{ Yeah, not many pointers to this from useful places in the documentation. }

---

<div class="post-metadata">

**Author:** ![Sebastian\_coor](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@Sebastian\_coor](https://forum.inductiveautomation.com/u/Sebastian_coor)\
**Post date:** [December 6, 2023, 2:06pm UTC](https://forum.inductiveautomation.com/t/use-system-tag-querytaghistory-from-a-remote-provider/82776/3 "2023-12-06T14:06:47Z")

</div>

thanks @pturmel !!!  
This worked!!!!
