I have an old SS 1.0 script that is using nlapiLoa...
# suitescript
s
I have an old SS 1.0 script that is using nlapiLoadFile and I am trying to update it to load the file using a relative path, but have not been able to get it to work. The only way I have been able to get it to work is to specify the full path starting with the SuiteScript directory like this: nlapiLoadFile(“SuiteScripts/Invoice Scripts/Utils/test.txt”). The script executing is under the Invoice Scripts folder and has a library file attached that resides under the Utils folder. The library file is the one that is attempting to load the file and so I would think that the path to load the file would either be “./Utils/text.txt” or “./test.txt” however neither work. Do anyone know what could be wrong?
e
I don't think
nlapiLoadFile
supports paths relative to the current file. The documentation says "relative file", but I don't think that's worded correctly; I think it just means "relative" to
/File Cabinet/
.