Unable to call shared script from tag event script

Hello,

I am unable to call a function inside a script which is under the shared script library from a tag event script.

Can someone guide me how to do that?

I have a created a script called sharedscript1 inside ‘shared’ library package.
Hence I am assuming that this script since it is global, it must be visible to the tag event script.
I am trying to call a function inside sharedscript1 from a tag event script once the value of the tag changes.

It throws me an error on the console:

Traceback (most recent call last):
File “tagevent:valueChanged”, line 28, in valueChanged
NameError: global name ‘shared’ is not defined

Thanks!

I think I got this resolved. I did not commit changes in my Gateway script by publishing it to the gateway and project.

Now its working!