# Script to view OPCItemPath for a single tag?

**URL:** <https://forum.inductiveautomation.com/t/script-to-view-opcitempath-for-a-single-tag/5421>\
**Category:** Ignition\
**Created:** [November 14, 2012, 5:56pm UTC](https://forum.inductiveautomation.com/t/script-to-view-opcitempath-for-a-single-tag/5421 "2012-11-14T17:56:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonpdavid](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@jasonpdavid](https://forum.inductiveautomation.com/u/jasonpdavid)\
**Post date:** [November 14, 2012, 5:56pm UTC](https://forum.inductiveautomation.com/t/script-to-view-opcitempath-for-a-single-tag/5421/1 "2012-11-14T17:56:22Z")

</div>

Is there a way to view the OPC Item Path? I am using the IALABS Scripting Module to add a new tag with an analog alert but I need to bind the OPCItemPath to a referenced tag.

I’ve successfully ran the following script to bring in a lot of other data for a group of tags but I need to select one tag in particular and get the OPCItemPath from it.

tags = system.tag.browseTags("[provider]folder")  
for tag in tags:  
print tag.name, tag.path, tag.fullPath, tag.isFolder(), tag.isUDT(), tag.isOPC(), tag.isDB(), tag.type

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [November 14, 2012, 6:28pm UTC](https://forum.inductiveautomation.com/t/script-to-view-opcitempath-for-a-single-tag/5421/2 "2012-11-14T18:28:59Z")

</div>

Yes, you can do the following:`path = system.tag.getAttribute("Path/To/Tag", "OPCItemPath")`

---

<div class="post-metadata">

**Author:** ![jasonpdavid](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@jasonpdavid](https://forum.inductiveautomation.com/u/jasonpdavid)\
**Post date:** [November 14, 2012, 8:02pm UTC](https://forum.inductiveautomation.com/t/script-to-view-opcitempath-for-a-single-tag/5421/3 "2012-11-14T20:02:16Z")

</div>

You rock! Thanks for the quick reply.
