# Get Tags with Children Gateway Scope

**URL:** <https://forum.inductiveautomation.com/t/get-tags-with-children-gateway-scope/19459>\
**Category:** Module Development\
**Created:** [August 29, 2018, 11:07pm UTC](https://forum.inductiveautomation.com/t/get-tags-with-children-gateway-scope/19459 "2018-08-29T23:07:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![salbrechtsen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/salbrechtsen/32/18660_2.png) [@salbrechtsen](https://forum.inductiveautomation.com/u/salbrechtsen)\
**Post date:** [August 29, 2018, 11:07pm UTC](https://forum.inductiveautomation.com/t/get-tags-with-children-gateway-scope/19459/1 "2018-08-29T23:07:56Z")

</div>

Is there a simple way to get a `List<TagNode>` for a certain parent path, with each Folder `TagNode` contains `TagNode` children where applicable?

I’ve tried using the `SQLTagsManager .browseTagInfo` function, and when passing the recursive parameter as true get a `BrowseResults<TagInfoResult>` set. However, this flat set doesn’t seem to respect my tag folder structure.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 30, 2018, 12:29am UTC](https://forum.inductiveautomation.com/t/get-tags-with-children-gateway-scope/19459/2 "2018-08-30T00:29:11Z")

</div>

Try using [TagManager](http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/com/inductiveautomation/ignition/common/sqltags/model/TagManager.html).getTag() on your folder [TagPath](http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/com/inductiveautomation/ignition/common/sqltags/model/TagPath.html). I believe you’ll get a [GatewayFolderTag](http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/com/inductiveautomation/ignition/gateway/sqltags/tags/GatewayFolderTag.html) which has a getChildren() method.
