Issue with system.util.getModules function

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

What made you think that exists?

Edit: Huh. Never noticed that one.

1 Like

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.

3 Likes

I got it. Thank you very much Kevin