# Can you run a tag report via a script?

**URL:** <https://forum.inductiveautomation.com/t/can-you-run-a-tag-report-via-a-script/107139>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [June 6, 2025, 6:29pm UTC](https://forum.inductiveautomation.com/t/can-you-run-a-tag-report-via-a-script/107139 "2025-06-06T18:29:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tucker\_Gustavesen](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@Tucker\_Gustavesen](https://forum.inductiveautomation.com/u/Tucker_Gustavesen)\
**Post date:** [June 6, 2025, 6:29pm UTC](https://forum.inductiveautomation.com/t/can-you-run-a-tag-report-via-a-script/107139/1 "2025-06-06T18:29:27Z")

</div>

I've used this tag report to get a quick csv file dump of all tags in a given provider loads of times.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/8/f88b0bee0fff9bb28690d805f023ea2d6b795e02.png)

I was wondering if there's a way I could execute this from a script to get the report results returned as a dataset? From there I'm comfy with getting that saved to a file, just not seeing anything jump out that looks like it would let me execute a tag report that I had already set up.

---

<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:** [June 6, 2025, 6:39pm UTC](https://forum.inductiveautomation.com/t/can-you-run-a-tag-report-via-a-script/107139/2 "2025-06-06T18:39:20Z")

</div>

Yes, use `system.tag.query()`.

See:

> **[system.tag.query | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-query)**
>
> Queries a Tag Provider to produce a list of tags that meet the specified criteria.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 6, 2025, 6:47pm UTC](https://forum.inductiveautomation.com/t/can-you-run-a-tag-report-via-a-script/107139/3 "2025-06-06T18:47:32Z")

</div>

You can even configure a report via the UI and then click a button to export it as a script:

> **[Tag Report Tool | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/platform/tags/tag-report-tool#interface-elements)**
>
> The Tag Report Tool allows users to search for tags by multiple criteria, including Tag Path, Quality, Type, Traits, and values on specific Properties.

---

<div class="post-metadata">

**Author:** ![Tucker\_Gustavesen](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@Tucker\_Gustavesen](https://forum.inductiveautomation.com/u/Tucker_Gustavesen)\
**Post date:** [June 6, 2025, 6:55pm UTC](https://forum.inductiveautomation.com/t/can-you-run-a-tag-report-via-a-script/107139/4 "2025-06-06T18:55:14Z")

</div>

Oh awesome, thank you both!! Feeling silly for not having seen the "copy as script" button hahaha
