# Getting custom tag params via getConfiguration

**URL:** <https://forum.inductiveautomation.com/t/getting-custom-tag-params-via-getconfiguration/28861>\
**Category:** Ignition Early Access\
**Created:** [October 7, 2019, 1:00am UTC](https://forum.inductiveautomation.com/t/getting-custom-tag-params-via-getconfiguration/28861 "2019-10-07T01:00:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [October 7, 2019, 1:00am UTC](https://forum.inductiveautomation.com/t/getting-custom-tag-params-via-getconfiguration/28861/1 "2019-10-07T01:00:38Z")

</div>

Potential bug… or as designed?

Writing a script that needs to pull a couple of datatype custom parameters.

```auto
oTagConfig = system.tag.getConfiguration(sElementPath)
iArrayIndex = oTagConfig[0]['parameters']['ArrayIndex']
sElementType = oTagConfig[0]['parameters']['ElementTag']
sOPCServer = oTagConfig[0]['parameters']['IPC']

```

This will fail if the custom parameters have their default value in them. If I remove the default value from the datatype and input it manually for each instance of that datatype, it works fine.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 7, 2019, 3:59pm UTC](https://forum.inductiveautomation.com/t/getting-custom-tag-params-via-getconfiguration/28861/2 "2019-10-07T15:59:44Z")

</div>

> [@joshdunstan](#):
>
> Potential bug… or as designed?

I think the answer to that is "yes".  
The way our tag editing model handles things, the individual UDT instance _doesn't have_ a given parameter value if it's the default. In theory, everything that should need to should automatically get the correct value from the parent. We could probably change the way that works for UDTs, but we'll have to be careful about potential regressions, in case anyone's relying on the way getConfiguration _currently_ works.

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [October 7, 2019, 8:44pm UTC](https://forum.inductiveautomation.com/t/getting-custom-tag-params-via-getconfiguration/28861/3 "2019-10-07T20:44:01Z")

</div>

Thanks Paul. I’ll continue with the defaults unfilled.
