# Set OPC tag OPC server property value from another UDT Tag output value

**URL:** <https://forum.inductiveautomation.com/t/set-opc-tag-opc-server-property-value-from-another-udt-tag-output-value/78571>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [August 30, 2023, 5:51pm UTC](https://forum.inductiveautomation.com/t/set-opc-tag-opc-server-property-value-from-another-udt-tag-output-value/78571 "2023-08-30T17:51:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jintomon\_Sunny](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@Jintomon\_Sunny](https://forum.inductiveautomation.com/u/Jintomon_Sunny)\
**Post date:** [August 30, 2023, 5:51pm UTC](https://forum.inductiveautomation.com/t/set-opc-tag-opc-server-property-value-from-another-udt-tag-output-value/78571/1 "2023-08-30T17:51:52Z")

</div>

Hi All  
I am new to ignition and trying to implement a project, where I have the requirement to connect to different OPC servers for Development, Testing, and production environments. therefore, I have created a UDT tag that will tell me if it's a development or Test or Production environment and the value of the server i.e., server name. I would like to feed this server name to the Original OPC tag (another UDT tag) "OPC server" property field. Is it even possible? Can you experts guide us? below are the details. is there any better approach?

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

Thank you.

---

<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:** [August 30, 2023, 7:53pm UTC](https://forum.inductiveautomation.com/t/set-opc-tag-opc-server-property-value-from-another-udt-tag-output-value/78571/2 "2023-08-30T19:53:58Z")

</div>

You cannot bind tag properties to follow something dynamically. You **can** monitor the dynamic item with a change script and **write** to the target tag's property. Or, if using UDTs where you've parameterized the OPC server property for the OPC tags within the UDT, you can write to the UDT instance's parameter (to change all of the tags in the UDT from one spot).

Hint: UDTs will make your life easier.

---

<div class="post-metadata">

**Author:** ![Jintomon\_Sunny](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@Jintomon\_Sunny](https://forum.inductiveautomation.com/u/Jintomon_Sunny)\
**Post date:** [September 6, 2023, 3:26pm UTC](https://forum.inductiveautomation.com/t/set-opc-tag-opc-server-property-value-from-another-udt-tag-output-value/78571/3 "2023-09-06T15:26:39Z")

</div>

Thank you for your assistance and sorry for the late reply.
