# system.tag.getConfiguration

**URL:** <https://forum.inductiveautomation.com/t/system-tag-getconfiguration/91387>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [June 5, 2024, 7:00am UTC](https://forum.inductiveautomation.com/t/system-tag-getconfiguration/91387 "2024-06-05T07:00:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sabrina\_Molitor](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Sabrina\_Molitor](https://forum.inductiveautomation.com/u/Sabrina_Molitor)\
**Post date:** [June 5, 2024, 7:00am UTC](https://forum.inductiveautomation.com/t/system-tag-getconfiguration/91387/1 "2024-06-05T07:00:41Z")

</div>

hello everyone,  
I'm trying to use getConfiguration to read out whether a Tag is part of a UDT or not.  
unfortunately the query always brings me true, even though 'tagType' is different.

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

---

<div class="post-metadata">

**Author:** ![Ujwal\_Wankhede](https://avatars.discourse-cdn.com/v4/letter/u/4af34b/32.png) [@Ujwal\_Wankhede](https://forum.inductiveautomation.com/u/Ujwal_Wankhede)\
**Post date:** [June 5, 2024, 7:18am UTC](https://forum.inductiveautomation.com/t/system-tag-getconfiguration/91387/2 "2024-06-05T07:18:10Z")

</div>

It should work after casting the type.  
`str(config[0]["tagType"])`

Debugging the type, returns its not a string.

```python
type(config[0]["tagType"])
result > 
<type 'com.inductiveautomation.ignition.common.tags.config.types.TagObjectType'>

```

Alternate method you can use without casting  
`config[0]["tagType"].equals(config[0]["tagType"].valueOf("UdtInstance"))`

---

<div class="post-metadata">

**Author:** ![Sabrina\_Molitor](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Sabrina\_Molitor](https://forum.inductiveautomation.com/u/Sabrina_Molitor)\
**Post date:** [June 5, 2024, 7:46am UTC](https://forum.inductiveautomation.com/t/system-tag-getconfiguration/91387/3 "2024-06-05T07:46:37Z")

</div>

Thanks for your Help.  
I tried it, but it doesn't work with "tagType".

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/0/90051aee4b060f0975af197062f6687387ee1704.png)

---

<div class="post-metadata">

**Author:** ![Ujwal\_Wankhede](https://avatars.discourse-cdn.com/v4/letter/u/4af34b/32.png) [@Ujwal\_Wankhede](https://forum.inductiveautomation.com/u/Ujwal_Wankhede)\
**Post date:** [June 5, 2024, 7:51am UTC](https://forum.inductiveautomation.com/t/system-tag-getconfiguration/91387/4 "2024-06-05T07:51:25Z")

</div>

> [@Ujwal\_Wankhede](#):
>
> **str** (config[0]["tagType"])

You are not converting the type of variable. Its not a string type.  
Use the bold method I highlighted above.

---

<div class="post-metadata">

**Author:** ![Sabrina\_Molitor](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Sabrina\_Molitor](https://forum.inductiveautomation.com/u/Sabrina_Molitor)\
**Post date:** [June 5, 2024, 7:55am UTC](https://forum.inductiveautomation.com/t/system-tag-getconfiguration/91387/5 "2024-06-05T07:55:12Z")

</div>

Thank you very much. Now it is working 🙂 Sorry I didn't recognized your string conversion
