# Using Project's Default Tag Provider in Gateway Timer Script

**URL:** <https://forum.inductiveautomation.com/t/using-projects-default-tag-provider-in-gateway-timer-script/102314>\
**Category:** Ignition\
**Tags:** scripting, ignition81\
**Created:** [February 13, 2025, 2:22pm UTC](https://forum.inductiveautomation.com/t/using-projects-default-tag-provider-in-gateway-timer-script/102314 "2025-02-13T14:22:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_Connell](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Josh\_Connell](https://forum.inductiveautomation.com/u/Josh_Connell)\
**Post date:** [February 13, 2025, 2:22pm UTC](https://forum.inductiveautomation.com/t/using-projects-default-tag-provider-in-gateway-timer-script/102314/1 "2025-02-13T14:22:39Z")

</div>

According to the manual, using empty brackets as the provider in a tag path will generally result in an invalid path in a Gateway script. However, the below line works for me in a Gateway Timer script and uses my project's default tag provider.

`system.tag.writeAsync(["[]TestTag"], [False])`

I'm curious as to why this works? If using empty brackets isn't a good idea, then what is the best way to construct Gateway scripts to utilize a project's default tag provider (i.e. for reusability across other projects)?

---

<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:** [February 13, 2025, 2:33pm UTC](https://forum.inductiveautomation.com/t/using-projects-default-tag-provider-in-gateway-timer-script/102314/2 "2025-02-13T14:33:53Z")

</div>

It works when called from with a project. Projects have a default tag provider (usually).

Gateway scope also includes script call stacks that are **not** inside a project (tag events in particular). and that syntax doesn't work.

---

<div class="post-metadata">

**Author:** ![Josh\_Connell](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Josh\_Connell](https://forum.inductiveautomation.com/u/Josh_Connell)\
**Post date:** [February 13, 2025, 7:18pm UTC](https://forum.inductiveautomation.com/t/using-projects-default-tag-provider-in-gateway-timer-script/102314/3 "2025-02-13T19:18:22Z")

</div>

That makes sense. Thanks
