# Convert pyopctag object to py dictionary

**URL:** <https://forum.inductiveautomation.com/t/convert-pyopctag-object-to-py-dictionary/81398>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [November 2, 2023, 4:57pm UTC](https://forum.inductiveautomation.com/t/convert-pyopctag-object-to-py-dictionary/81398 "2023-11-02T16:57:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waylon](https://avatars.discourse-cdn.com/v4/letter/w/dbc845/32.png) [@Waylon](https://forum.inductiveautomation.com/u/Waylon)\
**Post date:** [November 2, 2023, 4:57pm UTC](https://forum.inductiveautomation.com/t/convert-pyopctag-object-to-py-dictionary/81398/1 "2023-11-02T16:57:23Z")

</div>

Hey all. new to Ignition. I am wondering if you have a built in function to convert a pyopctag object into a py dict?  
I would like to use system.opc.browseServer() (returns a pyopctag object) to reach out to a PLC and grab a specific PLC UDT then use system.tag.configure() (expects Python dictionary or a JSON source string.) to create my Ignition tags.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 5, 2023, 10:57am UTC](https://forum.inductiveautomation.com/t/convert-pyopctag-object-to-py-dictionary/81398/2 "2023-11-05T10:57:22Z")

</div>

It looks like there is plenty of information on this topic [here](https://forum.inductiveautomation.com/search?q=Create%20OPC%20tags%20with%20scripting).

---

<div class="post-metadata">

**Author:** ![Waylon](https://avatars.discourse-cdn.com/v4/letter/w/dbc845/32.png) [@Waylon](https://forum.inductiveautomation.com/u/Waylon)\
**Post date:** [November 6, 2023, 7:44pm UTC](https://forum.inductiveautomation.com/t/convert-pyopctag-object-to-py-dictionary/81398/3 "2023-11-06T19:44:53Z")

</div>

Thank you!!! I thought I was going to have to create my own function to convert, it looks like somebody else did. I will test it when I cycle back to this project.
