Quick guide to adding and deploying a script in Netsuite

Step 1: Add your script to the SuiteScripts folder

  1. Navigate to Documents->Files->SuiteScripts.
  2. Click “Add File” to add your file here.

Step 2: Create the Script Record

  1. Navigate to Customization->Scripting->Scripts->New.
  2. Type in the first few letters of the name of the script you just added.  The file should appear.  Select the file and click “Create Script Record”.

Step 3: Configure the Script Record

  • Depending on the type of script you uploaded the script record will have different fields.  The name, ID, and description fields are on all script types.
  • Give your script a descriptive name.  I start with the initials of the company followed by a colon followed by a description followed by the script type.  For example:
  • Company is “ABC”
  • Script Description “Load And Save”
  • Script Type “Map/Reduce”

Name would be “AB: Load And Save Map/Reduce

  1. The ID should be filled out the same way except it should be all lower case with no spaces and start with an underscore.  I shorten the script type to its acronym.

ID would be “_ab_loadandsave_mr”

  1. Finally, good practice is to add a detailed description so anyone who looks at this script record will know what this script does.  Click “Save” to save the script record.
  1. Optionally Add Script parameters.  After adding script parameters to the script record, you can set values to these parameters on the script deployment.  The script can use these parameters which are configured on the deployment.

Step 4: Deploy the Script

  1. Click “Deploy Script

The title will default to the name of the script.  Use the same value for the ID, in this instance “_ab_loadandsave_mr”.

Depending on the script type you will see different fields.  As this is “Quick” guide, I will not go into all the details of the script deployment record.  Here are some details:

  • For non-scheduled scripts, you will need to select an “Audience”.  To have the script execute for all roles, Check the checkbox “All Roles” under the “Audience” tab.
  • For non-scheduled scripts, If the script deployment status is “Testing” it will only execute for the owner of the script (Shown on the script record).  Set the status to “Released” to execute for all users and roles listed on the “Audience” tab.
  • Map/Reduce and Scheduled scripts.
  • Set the Status to “Not Scheduled” to run the deployment ad hoc.  Set the status to “Scheduled” and then fill out the schedule to have it run automatically.
  • User Event and Client scripts.
  • Under “Applies To”, select the record type for which the script will run.
  • Suitelets.
  • Click the checkbox for “Available without Login” to make the Suitelet available to anyone who has the link to the Suitelet..
  • Click “Save” to save the deployment.

Step 5: Test your Script

  1. Validate your script is working by testing your script.

If you liked this article, please sign up for my newsletter to get these delivered to your inbox here.

Follow on
Jaime Requena Chief Executive Officer

Jaime Requena is a seasoned NetSuite Consultant and Solutions Architect, known for delivering WHITE GLOVE service to businesses. With 15+ years of experience and 3x certifications in ERP, Developer, and Admin, Jaime specializes in highly customized NetSuite accounts, transforming operations for 200+ satisfied customers all across the globe.

Get Connected

How can we help?


    Stay in the loop with Suite Tooth Consulting!

    We aim to bring unmatched expertise and professionalism to your NetSuite initiatives. Let’s talk about how our NetSuite consultancy can make a difference!

    Global Client Satisfaction

    Client Testimonials

    It’s Been 4+ Years Now And We Have Worked With Hundreds Of Clients, Building Our Way To The Top, One Happy Client After Another! Their Voices Of Satisfaction Serve As A Testament To Our Success –