I'm trying to import a custom module that has its ...
# suitescript
m
I'm trying to import a custom module that has its @NModuleScope set as Public. But nonetheless I'm getting the NO_PERMISSION_TO_MODULESCOPE_SAMEACCOUNT_MODULE . Not sure what's going on here.
b
Are you using suitescript 2.0
m
Not sure. Both my main script and my custom module specify @NApiVersion 2.x
I read on SuiteAnswers that I had to save my script as 2.x and then edit it and save it as 2.1. I did try that but to no avail.
My main script lives in a bundle and my custom module is just sitting on my Suitescripts folder
b
Explicitly use 2.0
Though its pretty weird for a bundled script to use a unbundled script
m
Ok I see, yes, probably not the best practice. It's the 1st time I'm trying to do this. I'm a Jr. Dev.
Didn't work but I was just really playing around. I wanted to create a custom module to simply hold all functions used by a single script, to avoid having 5000 lines of code on that script where 4,500 are just functions.