# Using script to generate tags and folders in the tag browser

**URL:** <https://forum.inductiveautomation.com/t/using-script-to-generate-tags-and-folders-in-the-tag-browser/58829>\
**Category:** Ignition\
**Created:** [April 25, 2022, 5:50pm UTC](https://forum.inductiveautomation.com/t/using-script-to-generate-tags-and-folders-in-the-tag-browser/58829 "2022-04-25T17:50:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![christopher.raphael](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@christopher.raphael](https://forum.inductiveautomation.com/u/christopher.raphael)\
**Post date:** [April 25, 2022, 5:50pm UTC](https://forum.inductiveautomation.com/t/using-script-to-generate-tags-and-folders-in-the-tag-browser/58829/1 "2022-04-25T17:50:09Z")

</div>

I would like to auto generate folders and tags in the default tag database using script. Any examples would help. My project is going out to several plants and I am doing code to auto generate all the items they need to make the project work.

---

<div class="post-metadata">

**Author:** ![ajdewhirst1](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@ajdewhirst1](https://forum.inductiveautomation.com/u/ajdewhirst1)\
**Post date:** [April 25, 2022, 5:59pm UTC](https://forum.inductiveautomation.com/t/using-script-to-generate-tags-and-folders-in-the-tag-browser/58829/2 "2022-04-25T17:59:50Z")

</div>

There are some examples here:

[https://docs.inductiveautomation.com/display/DOC81/system.tag.configure](https://docs.inductiveautomation.com/display/DOC81/system.tag.configure)

---

<div class="post-metadata">

**Author:** ![christopher.raphael](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@christopher.raphael](https://forum.inductiveautomation.com/u/christopher.raphael)\
**Post date:** [April 25, 2022, 6:11pm UTC](https://forum.inductiveautomation.com/t/using-script-to-generate-tags-and-folders-in-the-tag-browser/58829/3 "2022-04-25T18:11:54Z")

</div>

Thanks, I found this also.

[https://docs.inductiveautomation.com/display/DOC79/system.tag.addTag](https://docs.inductiveautomation.com/display/DOC79/system.tag.addTag)

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [April 25, 2022, 6:17pm UTC](https://forum.inductiveautomation.com/t/using-script-to-generate-tags-and-folders-in-the-tag-browser/58829/4 "2022-04-25T18:17:44Z")

</div>

Becareful, the way that tags are configured has changed significantly from 7.9 to 8.1

---

<div class="post-metadata">

**Author:** ![christopher.raphael](https://avatars.discourse-cdn.com/v4/letter/c/65b543/32.png) [@christopher.raphael](https://forum.inductiveautomation.com/u/christopher.raphael)\
**Post date:** [April 25, 2022, 6:30pm UTC](https://forum.inductiveautomation.com/t/using-script-to-generate-tags-and-folders-in-the-tag-browser/58829/5 "2022-04-25T18:30:20Z")

</div>

Of course, what fun is it to keep it the same. I have it working and work with both versions on my system anyway.
