# Way to trigger script based on new tags being added to tag provider?

**URL:** <https://forum.inductiveautomation.com/t/way-to-trigger-script-based-on-new-tags-being-added-to-tag-provider/47446>\
**Category:** Ignition\
**Tags:** scripting, perspective, ignition81\
**Created:** [June 4, 2021, 5:24am UTC](https://forum.inductiveautomation.com/t/way-to-trigger-script-based-on-new-tags-being-added-to-tag-provider/47446 "2021-06-04T05:24:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![wes0johnson](https://avatars.discourse-cdn.com/v4/letter/w/7ab992/32.png) [@wes0johnson](https://forum.inductiveautomation.com/u/wes0johnson)\
**Post date:** [September 15, 2021, 8:25pm UTC](https://forum.inductiveautomation.com/t/way-to-trigger-script-based-on-new-tags-being-added-to-tag-provider/47446/3 "2021-09-15T20:25:07Z")

</div>

Internally in MQTT Transmission we look for tags being added, moved, or deleted by using a TagStructureListener ([TagStructureListener](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.10/com/inductiveautomation/ignition/gateway/tags/model/TagStructureListener.html)) to detect these events. In turn we use this to control the ‘Refresh Required’ boolean tag. We could potentially use this in MQTT Engine to define a clearable tag - but this isn’t there today. I like the idea and will add it to our backlog.

For now, you can at least listen for new Edge Nodes in the [MQTT Engine]Engine Info/Edge Nodes folder. But, it seems you want more than just what this has to offer today.

---

_[View the full topic](https://forum.inductiveautomation.com/t/way-to-trigger-script-based-on-new-tags-being-added-to-tag-provider/47446)._
