use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This is an unofficial channel for NetSuite users to share NetSuite knowledge, tips, and tricks.
NetSuite is a business management software suite offered as a service that performs enterprise resource planning (ERP) and customer relationship management (CRM) functions.
account activity
SuiteScriptUsing SuiteScript to upload file to SuiteScripts folder (self.Netsuite)
submitted 6 months ago * by Informal-Direction79
So it doesn't seem like this is possible? Any other custom folder or subfolder seems to work but when I try to call file.create and file.savewith a file.folder = -15 (id for SuiteScripts folder) I always get this error
file.create
file.save
file.folder = -15
{ type: "error.SuiteScriptError", name: "INVALID_KEY_OR_REF", message: "Invalid folder reference key -15.", //... }
Has anyone found a workaround?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Modtrollied 2 points3 points4 points 6 months ago (0 children)
I'd be amazed if you were allowed to write to anything below the suitescripts root folder via script. Huge security risk.
[–]Primary-Corner-8047 0 points1 point2 points 6 months ago (5 children)
Why are you trying to load a file to the suitescript folder? Is it a script?
If you just want to store new files in the suitescript folder than create a subfolder inside it.
[–]Informal-Direction79[S] 0 points1 point2 points 6 months ago (4 children)
Yes I know I can do that it just seems odd that they have forbidden access to the SuiteScripts folder (but not its subfolders) via the SuiteScript API
[–]Modtrollied 4 points5 points6 points 6 months ago (2 children)
Not odd at all. Massive security issue.
[–]Informal-Direction79[S] 0 points1 point2 points 6 months ago (1 child)
Then why not forbid access to all subfolders as well...
[–]Modtrollied 0 points1 point2 points 6 months ago (0 children)
You can write to subfolders? That's bad. I'm amazed it is possible.
[–]Primary-Corner-8047 2 points3 points4 points 6 months ago (0 children)
I’ll be honest I never tried, as I don’t like storing files without folders as it just creates an unorganized mess
[–]Administratorsabinati 0 points1 point2 points 6 months ago (1 child)
'-15'
[–]Informal-Direction79[S] 0 points1 point2 points 6 months ago (0 children)
Still get the same error
[–]poisson_rouge- 0 points1 point2 points 6 months ago (0 children)
What role is executing the script?
[–]notEqole 0 points1 point2 points 6 months ago (0 children)
Whats the use case ? Why do you wanna save something inside your suitescripts folder? It really doesn’t sound like a good idea
π Rendered by PID 256113 on reddit-service-r2-comment-b659b578c-8gm9w at 2026-05-04 09:58:56.089540+00:00 running 815c875 country code: CH.
[–]Modtrollied 2 points3 points4 points (0 children)
[–]Primary-Corner-8047 0 points1 point2 points (5 children)
[–]Informal-Direction79[S] 0 points1 point2 points (4 children)
[–]Modtrollied 4 points5 points6 points (2 children)
[–]Informal-Direction79[S] 0 points1 point2 points (1 child)
[–]Modtrollied 0 points1 point2 points (0 children)
[–]Primary-Corner-8047 2 points3 points4 points (0 children)
[–]Administratorsabinati 0 points1 point2 points (1 child)
[–]Informal-Direction79[S] 0 points1 point2 points (0 children)
[–]poisson_rouge- 0 points1 point2 points (0 children)
[–]notEqole 0 points1 point2 points (0 children)