What is SuiteScript?

Person holding jigsaw puzzle pieces

Solving the NetSuite Puzzle

Trying to understand NetSuite customization better? It primarily uses workflows and SuiteScript for automation. SuiteScript is a primary part of customization to allow for automation throughout your NS instance. If you are just getting acquainted with NetSuite, you might think that the coding language doesn't really matter to you if you're not a developer who will be working with the code directly.  So, let's explore how the powerful capabilities of SuiteScript can benefit you. Did you know you can even create brand new pages within NetSuite? Here are some ideas for automation if you are brainstorming ways to make your work more efficient.

How does SuiteScript work?

SuiteScript is a scripting language used to extend the NetSuite capabilities and customization available for you. SuiteScript enables full-featured application-level scripting capabilities that support sophisticated procedural logic on both the client and server sides. A SuiteScript Debugger is built into the language giving you full control of how you use your NetSuite and all of the data that's available.

Primary Benefits of SuiteScript

One of the biggest benefits is that SuiteScript is built from industry-standard JavaScript, and can therefore be modified using HTML and CSS. This means that your in-house developers don't have to learn a whole new coding language to be able to work in NetSuite. Being built off of JavaScript also allows for full-featured application-level scripting in NetSuite, which is part of what gives the platform so much flexibility and performance.

Advantages of SuiteScript 2.0 vs 1.0

There are a number of advantages to using SuiteScript 2.0. The biggest improvement is the addition of the API modules. Unlike SuiteScript 1.0, modules in SuiteScript 2.0 only load the data that is needed instead of everything which reduces load time and computing power needed to perform the functions. Another improvement is the change of syntax to a Javascript format, this allows for a flattened learning curve and also the use of third party API's, such as USPS, FedEx, and PayPal, within your own NetSuite system.

SuiteScript Component Benefits

Looking deeper, there are several components within SuiteScript which benefit businesses that use NetSuite. Following is a list of a few SuiteScript components, along with brief explanations of how each component benefits NetSuite users.

  • Suitelets — extensions to SuiteScript provide you with the power to build a custom user interface that is hosted within the NetSuite framework
  • Portlet SuiteScript — allows for easy definition and listing of custom content or inclusion of external data-feeds on NetSuite dashboards via RSS, HTML, Flash, and more
  • Scheduled SuiteScript — allows SuiteScript logic to be processed on a schedule, automating workflows such as imported data, re-assignment of stale leads, or aging invoices
  • User Event SuiteScript — are triggered when users open, edit, or save records in NetSuite, and can be used to enforce business rules and data validation
  • Client SuiteScript — runs within the user's browser, and can be used to perform processing such as validating user-entered data or running business logic

Using CodePen.io for SuiteScript

CodePen.io helps separate different type types of code, which can be especially helpful if you’re a beginner and need a little extra help remembering which type of code you're writing in. Knowing the difference between HTML, CSS, and JavaScript, as well as understanding how those interact together is very important as you plan to do any SuiteScript coding. You'll notice that HTML CSS and JavaScript are separated into different sections within the CodePen.io system while you are editing the document, and that CodePen.io combines the code for you when you export it.  With CorePen, you can easily write code in HTML, do styling in CSS, and then JavaScript will be where you use heredoc in json. CodePen allows you to save the webpage on your local computer so you can test it, but the nice thing about CodePen.io is that you're able to do all your testing within that environment before exporting your code.

Help Resources for SuiteScript Debugging

The NetSuite Help Center is essentially a manual for NetSuite, and it is compiled in a table format so you'll be able to access different information by expanding each individual header. You can also search for specific information within the NetSuite HelpCenter, but your search has to be pretty specific. SuiteAnswers is another resource you will use quite a bit as you work with SuiteScript. It is quite similar to the NetSuite Help Center, as it combines the same Help Center resources with other, more expanded use case help resources such as targeted help articles.

Hopefully, this post gives you something to work with while trying to understand NetSuite and what it can do for your business. If you have any questions and want some consulting advice, feel free to contact our team at Anchor Group.

Contact us


Want to keep learning?

Our team of NetSuite professionals here at Anchor Group has written articles on a wide variety of NetSuite topics, from SuiteCommerce tips, to recommended NetSuite solutions, to available support services, and more! 

Your cart