# Issue with system.util.getModules function

**URL:** <https://forum.inductiveautomation.com/t/issue-with-system-util-getmodules-function/85280>\
**Category:** Ignition\
**Tags:** ignition81, scripting, vision\
**Created:** [February 6, 2024, 9:33am UTC](https://forum.inductiveautomation.com/t/issue-with-system-util-getmodules-function/85280 "2024-02-06T09:33:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattmod](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@Mattmod](https://forum.inductiveautomation.com/u/Mattmod)\
**Post date:** [February 6, 2024, 9:33am UTC](https://forum.inductiveautomation.com/t/issue-with-system-util-getmodules-function/85280/1 "2024-02-06T09:33:11Z")

</div>

Hi everyone,  
I've tried to call in a script the function "system.util.getModules", however I've got the following error:

> AttributeError: 'com.inductiveautomation.ignition.common.script.Imm' object has no attribute 'getModules'

Can someone help me to work it out?  
Thanks

---

<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 6, 2024, 1:11pm UTC](https://forum.inductiveautomation.com/t/issue-with-system-util-getmodules-function/85280/2 "2024-02-06T13:11:51Z")

</div>

What made you think that exists?

Edit: Huh. Never noticed that one.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 6, 2024, 1:34pm UTC](https://forum.inductiveautomation.com/t/issue-with-system-util-getmodules-function/85280/3 "2024-02-06T13:34:55Z")

</div>

[https://docs.inductiveautomation.com/display/DOC81/system.util.getModules](https://docs.inductiveautomation.com/display/DOC81/system.util.getModules)

@Mattmod it's scoped Gateway only, so if you're trying to call it in the Designer script console it won't work.

---

<div class="post-metadata">

**Author:** ![Mattmod](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@Mattmod](https://forum.inductiveautomation.com/u/Mattmod)\
**Post date:** [February 6, 2024, 2:06pm UTC](https://forum.inductiveautomation.com/t/issue-with-system-util-getmodules-function/85280/4 "2024-02-06T14:06:45Z")

</div>

I got it. Thank you very much Kevin
