Undefined Function Error on module argument calling a script include

Steven S
Kilo Contributor

Hello everyone, I ran into a weird issue in regards to a argument I'm trying to pass inside a module.

I'm calling a script include, that is calling child function that returns an array of sys_ids.

I'm also working within a scoped application.

 

The module argument is as follows

category=other^organization.sys_idIN javascript: new utils().get_ids(gs.getUserID()).toString()

I keep getting an error stating that the function is undefined?

I ran a background script to call my functions and it returns the value needed, but when calling it in the module it does not work. 

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

Is your script include client callable?

View solution in original post

2 REPLIES 2

Mark Stanger
Giga Sage

Is your script include client callable?

Steven S
Kilo Contributor

Thanks for the reply Mark, looks like someone made a change to our script include and unchecked client callable check box.

 

After rechecking and making some adjustments to the script the argument is now calling the script include!

I also added the <scope application name> after the new keyword as such 

 

new <scope name>.utils().get_ids(gs.getUserID()).toString()