# Find/Replace Tag Value Question

**URL:** <https://forum.inductiveautomation.com/t/find-replace-tag-value-question/11841>\
**Category:** Ignition\
**Created:** [June 21, 2016, 4:16pm UTC](https://forum.inductiveautomation.com/t/find-replace-tag-value-question/11841 "2016-06-21T16:16:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hgarner](https://avatars.discourse-cdn.com/v4/letter/h/9d8465/32.png) [@hgarner](https://forum.inductiveautomation.com/u/hgarner)\
**Post date:** [June 21, 2016, 4:16pm UTC](https://forum.inductiveautomation.com/t/find-replace-tag-value-question/11841/1 "2016-06-21T16:16:02Z")

</div>

We are interested in searching for a tag value within a project. We have a number of string tags within UDTs that hold values we may need to find through the course of our development. We have tried using the Find/Replace option in the Designer, but it only seems to find tag names and not their values. Is it possible to search for the tag value of a string tag within a UDT?

Thanks

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [June 21, 2016, 10:04pm UTC](https://forum.inductiveautomation.com/t/find-replace-tag-value-question/11841/2 "2016-06-21T22:04:47Z")

</div>

Unfortunately no, tag values are not searchable using find replace.

---

<div class="post-metadata">

**Author:** ![JGJohnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jgjohnson/32/29582_2.png) [@JGJohnson](https://forum.inductiveautomation.com/u/JGJohnson)\
**Post date:** [June 21, 2016, 10:14pm UTC](https://forum.inductiveautomation.com/t/find-replace-tag-value-question/11841/3 "2016-06-21T22:14:59Z")

</div>

You should be able to accomplish this through scripting using system.tag.browseTags, system.tag.read and system.tag.write.

If you have a lot of tags this could be a long running script though.

---

<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 21, 2016, 11:37pm UTC](https://forum.inductiveautomation.com/t/find-replace-tag-value-question/11841/4 "2016-06-21T23:37:57Z")

</div>

Or you could export your entire tag tree, do your search & replace, then import it back.

---

<div class="post-metadata">

**Author:** ![hgarner](https://avatars.discourse-cdn.com/v4/letter/h/9d8465/32.png) [@hgarner](https://forum.inductiveautomation.com/u/hgarner)\
**Post date:** [July 12, 2016, 5:48pm UTC](https://forum.inductiveautomation.com/t/find-replace-tag-value-question/11841/5 "2016-07-12T17:48:07Z")

</div>

I was able to do this using system.tag.browseTags, system.tag.read and system.tag.write as suggested below.

Thanks

---

<div class="post-metadata">

**Author:** ![pweber](https://avatars.discourse-cdn.com/v4/letter/p/f04885/32.png) [@pweber](https://forum.inductiveautomation.com/u/pweber)\
**Post date:** [April 8, 2020, 7:03am UTC](https://forum.inductiveautomation.com/t/find-replace-tag-value-question/11841/6 "2020-04-08T07:03:45Z")

</div>

How about trying to find all the places where a Tag is set?  
I have where the TagValue is collected but I don’t know who/where/how/when it gets set.

---

<div class="post-metadata">

**Author:** ![Cory\_Benson](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@Cory\_Benson](https://forum.inductiveautomation.com/u/Cory_Benson)\
**Post date:** [September 19, 2024, 1:37pm UTC](https://forum.inductiveautomation.com/t/find-replace-tag-value-question/11841/7 "2024-09-19T13:37:49Z")

</div>

Seems like a major oversight on an otherwise robust, powerful find/replace with contextual, wildcard, & custom filters. We frequently use paths, strings, etc. and being able to use replace() function in scripting at runtime but NOT in the Designer's find/replace tool is extremely frustrating. Seems like it would've been straightforward to have one of the contextual checkboxes handle whether or not tag values are modifiable by the replace button.

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [September 19, 2024, 2:21pm UTC](https://forum.inductiveautomation.com/t/find-replace-tag-value-question/11841/8 "2024-09-19T14:21:39Z")

</div>

I've got some scripts I wrote (but with no GUI) that I've set up to export values to an Excel (XLSX, not CSV) file of selected properties/tags inside a UDT (or an atomic tag) for all tags of the same datatype. I use it for rapidly filling in information like descriptions, setpoints, scaling, engineering units, etc. It allows me to send it to our customer or if they provided a spreadsheet of the info, I can copy/paste between their spreadsheet and mine, then import/load the data back into the tags, and it works surprisingly fast even for thousands of tag/property values cause I read/write the values in large arrays rather than one-by-one.

I may try to put more polish on it, give it a GUI, and post it on the exchange when I get some time.
