# Creating a script to search through UDT tag scripts

**URL:** <https://forum.inductiveautomation.com/t/creating-a-script-to-search-through-udt-tag-scripts/79924>\
**Category:** Ignition\
**Created:** [October 2, 2023, 2:32pm UTC](https://forum.inductiveautomation.com/t/creating-a-script-to-search-through-udt-tag-scripts/79924 "2023-10-02T14:32:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bushmatic](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bushmatic/32/87014_2.png) [@Bushmatic](https://forum.inductiveautomation.com/u/Bushmatic)\
**Post date:** [October 2, 2023, 2:32pm UTC](https://forum.inductiveautomation.com/t/creating-a-script-to-search-through-udt-tag-scripts/79924/1 "2023-10-02T14:32:08Z")

</div>

Has anyone written a script (if this is even possible) to search through all UDT definitions to find a certain 'search string' within a tag's scripting features? The standard ctrl + F feature in Ignition does not seem to search these and I find myself needing to hunt through these scripts manually very often when troubleshooting production issues.

I am talking about in here specifically:

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

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [October 2, 2023, 2:45pm UTC](https://forum.inductiveautomation.com/t/creating-a-script-to-search-through-udt-tag-scripts/79924/2 "2023-10-02T14:45:28Z")

</div>

Use `system.tag.getConfiguration`  
[https://docs.inductiveautomation.com/display/DOC81/system.tag.getConfiguration](https://docs.inductiveautomation.com/display/DOC81/system.tag.getConfiguration)

Example:

```auto
path = "[default]_types_/New Type"
 
# Run the system function and assign the value to a variable
tagDict = system.tag.getConfiguration(path, True)
 
# Print the results
print tagDict

```

You could then search for something specific.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [October 2, 2023, 2:56pm UTC](https://forum.inductiveautomation.com/t/creating-a-script-to-search-through-udt-tag-scripts/79924/3 "2023-10-02T14:56:41Z")

</div>

Seems to work here. v8.1.25. That said, if it's something dynamically created, then the find tool will not help.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/5/85aaca98d24acac905829d191d1c795b18f562ef.png)
