# Use the legacy scripting on Web Dev Module

**URL:** <https://forum.inductiveautomation.com/t/use-the-legacy-scripting-on-web-dev-module/75242>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [June 19, 2023, 10:12pm UTC](https://forum.inductiveautomation.com/t/use-the-legacy-scripting-on-web-dev-module/75242 "2023-06-19T22:12:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmata](https://avatars.discourse-cdn.com/v4/letter/f/8e7dd6/32.png) [@fmata](https://forum.inductiveautomation.com/u/fmata)\
**Post date:** [June 19, 2023, 10:12pm UTC](https://forum.inductiveautomation.com/t/use-the-legacy-scripting-on-web-dev-module/75242/1 "2023-06-19T22:12:47Z")

</div>

Hi,

I am in the process of upgrading an existing project from version 7.9 to 8.1, and I'm also developing a new web platform using the WebDev module. The previous project contains several legacy scripts that are utilized for retrieving data from a database. My intention is to reuse these scripts in the WebDev module; however, I am currently facing an issue when attempting to use the `runScript` function.

I am uncertain whether it is possible to utilize global scripts in the WebDev module, or if I need to refactor them in some way.

Thank you and regards,

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [June 19, 2023, 10:28pm UTC](https://forum.inductiveautomation.com/t/use-the-legacy-scripting-on-web-dev-module/75242/2 "2023-06-19T22:28:52Z")

</div>

Runscript is an expression function and will not work in WebDev.  
Any scripts that are in a global scope can be used from the WebDev module though.  
We use them extensively for the same thing you are talking about.
