Can scoped script includes be extended to other scoped apps?

davidarbour
Mega Contributor

Can a script include in scoped app B extend a script include in scoped app A?

10 REPLIES 10

peterh_smith
Tera Contributor

Try setting "Accessible from" to "All application scopes" in scoped app A.   Refer to x_acme_a.scriptName from B.


SanjivMeher
Kilo Patron
Kilo Patron

I think you can using the format, application_name.script_include_name.


ex, if application name is A


A.myscriptincludename



Please mark this response as correct or helpful if it assisted you with your question.

davidarbour
Mega Contributor

Yeah, I've already set the script include in app A to be accessible from all scopes and I'm extending it in app B using the full name. But when I call a function from the script include in app B, I'm getting a very vague error message: TypeError: Method "toString" called on incompatible object. And I'm not calling "toString" in any of my code.


Hi David,



I would suggest adding few gs.log in each step in the function you are calling. You will know, whether you are able to enter the code and till where you are reaching.



Please mark this response as correct or helpful if it assisted you with your question.