# Run Script In Expression Tag is it Possible

**URL:** <https://forum.inductiveautomation.com/t/run-script-in-expression-tag-is-it-possible/5695>\
**Category:** Ignition\
**Created:** [January 17, 2013, 3:59pm UTC](https://forum.inductiveautomation.com/t/run-script-in-expression-tag-is-it-possible/5695 "2013-01-17T15:59:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidamcg](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@aidamcg](https://forum.inductiveautomation.com/u/aidamcg)\
**Post date:** [January 17, 2013, 3:59pm UTC](https://forum.inductiveautomation.com/t/run-script-in-expression-tag-is-it-possible/5695/1 "2013-01-17T15:59:39Z")

</div>

Hi

I tried to use the run script expression in a SQL tag but it does not seem to work and this error “NameError: name ‘app’ is not defined” appears in console. I used the example from the manual on getting the temperature from Yahoo. I am able to get it to work with a label on a window. I am wondering is it possible to use the run script function in SQL tags ?

Aidan

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [January 17, 2013, 4:22pm UTC](https://forum.inductiveautomation.com/t/run-script-in-expression-tag-is-it-possible/5695/2 "2013-01-17T16:22:09Z")

</div>

It is not possible. SQLTags are gateway scoped, so they can’t “see” script module functions within projects.
