# Auto-populate templates when creating new tags

**URL:** <https://forum.inductiveautomation.com/t/auto-populate-templates-when-creating-new-tags/71396>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [March 21, 2023, 4:46pm UTC](https://forum.inductiveautomation.com/t/auto-populate-templates-when-creating-new-tags/71396 "2023-03-21T16:46:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Mantle](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@Matthew\_Mantle](https://forum.inductiveautomation.com/u/Matthew_Mantle)\
**Post date:** [March 21, 2023, 4:46pm UTC](https://forum.inductiveautomation.com/t/auto-populate-templates-when-creating-new-tags/71396/1 "2023-03-21T16:46:52Z")

</div>

So I have a group of tags that I an constantly adding news ones too. The tags are grabbing MQTT data off of specific machines. I also have an overview screen, with a template that I made, of all the machines that I am monitoring. I have one copy of the template for each machine. Is there a way to make it when I create a new tag in this folder to auto-populate new copies of the template with the tag data.

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [March 21, 2023, 4:50pm UTC](https://forum.inductiveautomation.com/t/auto-populate-templates-when-creating-new-tags/71396/2 "2023-03-21T16:50:48Z")

</div>

in vision there is a template repeater and perspective the flex repeater.

i suppose that each machine has his own folder. you could check how many folder to you have and via scripting create the repeater instance dynamically

---

<div class="post-metadata">

**Author:** ![leonardo.godoi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/leonardo.godoi/32/27178_2.png) [@leonardo.godoi](https://forum.inductiveautomation.com/u/leonardo.godoi)\
**Post date:** [March 21, 2023, 5:10pm UTC](https://forum.inductiveautomation.com/t/auto-populate-templates-when-creating-new-tags/71396/3 "2023-03-21T17:10:57Z")

</div>

I've done that in a **vision** project a few years ago, from what i remember right now i`ve used **system.tag.browse()** to get a list of tags in a folder and then for each tag i would prepare a row to use in a dataset that would be driving my template repeater component.  
Every time i would open that screen i would do a check to see if the number of tags changed from the last time and if so i would run the script again to populate the template.  
How you get there will be mostly defined if you're working with Vision or Perspective, and your tag layout.
