Hi everyone, is it even possible to reference to a...
# sdf
b
Hi everyone, is it even possible to reference to a SuiteApp script as a module into another non suiteapp, in this example an user event, script? I have deployed a SuiteApp via SDF and set the particular script file’s JSDOC tag modulescope to Public. Whenever I try to import that script as a module I get the module does not exists error message {“type”“error.SuiteScriptModuleLoaderError”,“name”“MODULE_DOES_NOT_EXIST”,“message”:“Module does not exist: /FileCabinet/SuiteApps/foo/classes/scriptfile.js”,“stack” I have changed the publisher id for this question to foo so don’t look at that.
b
dont include the NApiVersion in your public module
you may also need to use 2.0 in your user event script
b
I wasn’t able to make it work by changing it.
b
Use a valid path, paths dont include /FileCabinet
b
@battk I have changed the path. So now it’s ../../SuiteApps/publisherid/foo/file. Additionally I have removed all jsdoc tags from the module and it works now.Thanks