Best Set Up For SuiteScript Coding in WebStorm

As mentioned in my previous post on what my preferred text editor is for SuiteScripting NetSuite does provide a deeper integration with JetBrains’ WebStorm product through a plugin.

To enable this plugin in WebStorm you will need to access this help page in NetSuite’s documentation and follow the step by step guide .

(The process is fairly straightforward, but unfortunately the plugin doesn’t play well with PyCharm.)

Once you then have the plugin installed in WebStorm you then need to ensure you undertake (or already have done) the following steps:

  1. Set up the SuiteCloud Development Framework
  2. Create the SDF role (if needed) – I’m our account administrator, so I just use this role.
  3. Fetch a token .
  4. Create new “Account Customization” project in WebStorm.
  5. Set the Master Password for this project by clicking on the NetSuite > Master Password and setting it accordingly.
  6. Then click on NetSuite > Manage Accounts and follow through the prompts to get yourself connected.
  7. Insert your token ID and secret into the user account.
  8. Now time to download your project folder from within your File Cabinet. Just right-click on the folder in the Project Explorer labelled FileCabinet and then hover over the NetSuite icon on the dropdown menu and then select “Import Files from Account…”
SuiteScript Tools Webstorm
WebStorm IDE SuiteScript Plugin options

Then you will have the option of selecting what project folder you would like to play around with.

From here on out it’s just a simple case of right-clicking on files and hovering over the NetSuite icon and selecting what you’d like to do.

  1. Deploy
  2. Validate
  3. Upload individual files

You might even want to make it a short-cut code on your keyboard!

Photo of author
Ryan Sheehy
Ryan has been dabbling in code since the late '90s when he cut his teeth exploring VBA in Excel. Having his eyes opened with the potential of automating repetitive tasks, he expanded to Python and then moved over to scripting languages such as HTML, CSS, Javascript and PHP.