the sdfcli (java) is one official utility you coul...
# suitescript
s
the sdfcli (java) is one official utility you could use - it has a file upload command that allows to you specify
-account
on the command line - hence you can direct to any account you want (to which you have access of course)
j
Yeah I was justing looking at that but the old SS 1.0 isn't an SDF project and project is a required parameter to the SDFCLI
s
I don't see any reason your code needs to be SS2 to work with SDF
at least for file uploads, I think sdfcli can be used as a generic file upload tool
as long as your files are in the folder structure (e.g. rooted at
/FileCabinet
) sdf expects?
j
On new customizations I've been creating SDF project folders under /FileCabinet/SuiteScripts. The older code is under /FileCabinet/SuiteScripts/Customizations so would project parameter just be the path to that folder on my local drive?
s
I think the easiest is to run the
sdfcli
command from whatever folder has
FileCabinet
as a folder, then use the
uploadfiles
command in the sdfcli with the paths you want to upload e.g.
/FileCabinet/SuiteScripts/Customizations/myscriptfile.js
j
My directory structure in this case doesn't mirror the filecabinet. I don't have a SuiteScript folder. I have something like /Customizations/JS/ClientSide/somefile.js. when in eclipse the upload command puts it under /SuiteScripts/Customizations/JS/ClientSide but when I try with sdfcli says the file does not exist.
I set the project parameter to be path to the folder just above /Customizations