Using this script
# suitescript
c
Using this script
t
you need @NScriptType in the header as well
see docs
s
I don't think you need to specify an @NApiVersion on custom modules as they are confined to the @NapiVersion dictated by the entrypoint script using this custom module.
in other words, don't use @Nxxx at all in that module file.
s
^ this, I have plenty of custom library files with no header at all
s
put another way, those special
@Nxxx
directives should only be in entrypoint script files.
c
message has been deleted
THe doc includes the @NApiVersion tag
When I remove that tag the upload works but then NS is asking me to declare the script type
I believe you don't actually need a script record so you probably don't have to select the script type, that UI screen can be ignored as the JS file is in the file cabinet
Looking forward to breaking this massive monolithic script into a nice modular architecture
s
Yes, that diagram is wrong, based on my actual use.
s
I believe you don't actually need a script record so you probably don't have to select the script type, that UI screen can be ignored as the JS file is in the file cabinet
This is correct, these files would not need scripted records