Suitescript tutorial

Suitescript is NetSuite API, in JavaScript that helps you to modifiy NetSuite according to your requirements and beyond the basis default functionalities given by NetSuite. Every Business has different requirements and thus NetSuite needs to be modified based on user’s requirement. Being a Netsuite Developer you will need to do the scripting work in Javascript for Netsuite.

Using SuiteScript you can create list, records like customer record, lead, quotation, contact etc. You can create tabs, sublist, buttons and fields according to your requirements.

The type of script that you can build with Netsuite are

  1. Suitelet
  2. Restlet
  3. User Event
  4. Scheduled
  5. Client
  6. Portlet

Every Netsuite Record may be it’s a customer record, item record has a sub record. Sub record is related to parent record. In Netsuite we call sub record because they are related to parent record and they themselves are not a record. for e.g a bill record can have related record like inventory (quantity) detail subrecord. There is no use of sub record with out the parent record.


Parent record must be saved to the database before sub record is committed. So, we must commit parent record first then only we can commit sub record.