# ScriptManager.runScriptFunction() example

**URL:** <https://forum.inductiveautomation.com/t/scriptmanager-runscriptfunction-example/70667>\
**Category:** Module Development\
**Created:** [March 6, 2023, 1:19pm UTC](https://forum.inductiveautomation.com/t/scriptmanager-runscriptfunction-example/70667 "2023-03-06T13:19:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [March 6, 2023, 6:39pm UTC](https://forum.inductiveautomation.com/t/scriptmanager-runscriptfunction-example/70667/2 "2023-03-06T18:39:11Z")

</div>

> [@kanduri.shouri](#):
>
> I have taken managed-tag-provider example provided by the SDK as my skeleton project and trying to run ignition's system functions through scriptManager.runFunction().

Why?

You can directly access the SDK and do what you need to, without the overhead of translation to and from Jython objects.

> [@tagHistory in SDK module](https://forum.inductiveautomation.com/t/taghistory-in-sdk-module/68933):
>
> Hello, I am developing a script to make a query in the database from the SDK module, in designer script I use system.tag.queryTagHistory to get the dataset, but I can't find the function to get the dataset from java, would there be any way to make that query? thank you

---

_[View the full topic](https://forum.inductiveautomation.com/t/scriptmanager-runscriptfunction-example/70667)._
