# Pulling tags from folder with system.tag.browseTags

**URL:** <https://forum.inductiveautomation.com/t/pulling-tags-from-folder-with-system-tag-browsetags/57841>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [March 30, 2022, 9:43pm UTC](https://forum.inductiveautomation.com/t/pulling-tags-from-folder-with-system-tag-browsetags/57841 "2022-03-30T21:43:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Casu](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Casu](https://forum.inductiveautomation.com/u/Casu)\
**Post date:** [March 30, 2022, 9:43pm UTC](https://forum.inductiveautomation.com/t/pulling-tags-from-folder-with-system-tag-browsetags/57841/1 "2022-03-30T21:43:14Z")

</div>

Hi there, I am trying to get into a specific named folder and take all tags inside. e.g. Folders A/B/C have nested folders called Info. I want all tags from this info folder from all 3 parent folders (A/B/C)

My current code is the following and returns the folders A/B/C:  
browseTagArray = system.tag.browseTags()

I tried using the recursive type and specifying a path (only one to test) however, it only returns blank info  
browseTagArray = system.tag.browseTags(tagPath = “[Default]A/Info”, recursive = True)

If anyone has pointers/ sees a glaring mistake, please let me know. Cheers!

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [March 30, 2022, 9:52pm UTC](https://forum.inductiveautomation.com/t/pulling-tags-from-folder-with-system-tag-browsetags/57841/2 "2022-03-30T21:52:38Z")

</div>

The last example in the manual should get you going, it is filtering just UDT tags, but you can modify that.  
[https://docs.inductiveautomation.com/display/DOC80/system.tag.browse](https://docs.inductiveautomation.com/display/DOC80/system.tag.browse)

---

<div class="post-metadata">

**Author:** ![Casu](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Casu](https://forum.inductiveautomation.com/u/Casu)\
**Post date:** [March 30, 2022, 10:28pm UTC](https://forum.inductiveautomation.com/t/pulling-tags-from-folder-with-system-tag-browsetags/57841/3 "2022-03-30T22:28:48Z")

</div>

Thanks for your quick response!  
I went through a bit of this initially and switched to the 8.1 manual, where they look at it with the recursive condition instead of looping through. Is there any difference in these two methods before I go in deeper?

---

<div class="post-metadata">

**Author:** ![Casu](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Casu](https://forum.inductiveautomation.com/u/Casu)\
**Post date:** [March 30, 2022, 10:32pm UTC](https://forum.inductiveautomation.com/t/pulling-tags-from-folder-with-system-tag-browsetags/57841/4 "2022-03-30T22:32:29Z")

</div>

Sorry, I managed to find the solution! Thanks for all your help 🙂

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [March 30, 2022, 10:32pm UTC](https://forum.inductiveautomation.com/t/pulling-tags-from-folder-with-system-tag-browsetags/57841/5 "2022-03-30T22:32:44Z")

</div>

I would go with `system.tag.browse` since .browseTags isn’t necessarily going to be around forever. The manual also warns to avoid using the recursive option. That said, the recursion = True should work, i suspect the problem is that you specified a tagPath with no wild cards. Using parentPath would be better.
