netsuite-upload is a Visual Studio Code extension that allows you to manage your SuiteScript files directly from the IDE & helps you with defining of new momdules & module dependecies
Right-click the file/folder in the navigation panel to see the options:
Pull file from NetSuite
- downloads file from NetSuitePush file to NetSuite
- uploads file to NetSuiteDelete file in NetSuite
- deletes file in NetSuiteCompare file with NetSuite
- compares your local version with the NetSuite onePull folder from NetSuite
- Download the folder content from NetSuite
Snippets for module initialization
- type defineRestlet..., choose your module type and hit enterCommands for adding new NetSuite/custom dependencies
- open command line (Ctrl
-Shift
-P
) and type- add netsuite dependency for choosing of the NetSuite built-in module from the list
- add custom dependency for defining od custom dependecies
- Upload
netSuiteRestlet/vscodeExtensionRestlet.js
file somewhere in theSuiteScripts
folder in NetSuite - Create and deploy RESTlet using the file. (RESTlet URL will be set in the
settings.json
)
- Open your local root SuiteScripts folder in VSCode
- If not yet created, create one or update the project
settings.json
inside the.vscode
folder - Copy the following code to
settings.json
and update with your settings
settings.json
{
// Authentication header
"netSuiteUpload.authentication": "NLAuth nlauth_account=<ACCOUNTID>, nlauth_email=<LOGIN>, nlauth_signature=<PASSWORD>, nlauth_role=<ROLE>",
// Restlet URL
"netSuiteUpload.restlet": "<RESTlet URL>",
// Temporary folder (e.g. C:\\temp) - used for storing compared file
"netSuiteUpload.tempFolder": "<TEMP FOLDER PATH>"
}
The plugin is using RESTlet for the communication with the NetSuite which is having some governance limitation. Current implementation does not deal with this problem, so there could be a problem to pull folders containing a lot of items from NetSuite.