# Call function fro a module

**URL:** <https://forum.inductiveautomation.com/t/call-function-fro-a-module/20344>\
**Category:** Module Development\
**Tags:** ignition79\
**Created:** [October 24, 2018, 11:02am UTC](https://forum.inductiveautomation.com/t/call-function-fro-a-module/20344 "2018-10-24T11:02:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oisin.gribben](https://avatars.discourse-cdn.com/v4/letter/o/9d8465/32.png) [@oisin.gribben](https://forum.inductiveautomation.com/u/oisin.gribben)\
**Post date:** [October 24, 2018, 11:02am UTC](https://forum.inductiveautomation.com/t/call-function-fro-a-module/20344/1 "2018-10-24T11:02:13Z")

</div>

Hi,

I have my module installed on the gateway.  
I am trying to call it from the script console but it doesn’t seem to see it.  
What is the call to do this?

---

<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:** [October 24, 2018, 11:07am UTC](https://forum.inductiveautomation.com/t/call-function-fro-a-module/20344/2 "2018-10-24T11:07:42Z")

</div>

The script console has no direct access to the gateway. If your module is loaded in the designer scope, you should be able to import the classes like any other java class. If it is only in gateway scope, you’ll need to implement message or request handlers in the gateway to call your module functions, and use system.util.sendRequest() to invoke those handlers.
