Skip to main content

NetSuite RESTlet Installation Guide

This guide walks you through installing and updating the CloseCore RESTlet script in NetSuite. Once deployed, you can use Saved Searches and SuiteAnalytics Datasets as data sources in CloseCore's AutoExport feature.

Installation

1. Upload the script file

Ensure you are logged in with a role that allows you to install scripts.

  1. Go to Customization → Scripting → Scripts → New.

  2. Hover over the Script File dropdown and click the + icon.

    Upload Script File page with Script File dropdown and + icon

  3. Upload the script file and give it a name that ends in .js. The file name must end in .js.

    File upload form showing script file name ending in .js

  4. Click Save.

  5. Click Create Script Record.

2. Create the script record

  1. Give the script a Name such as "CloseCore RESTlet."

    Script form with Name field

  2. Under Unhandled Errors, you can deselect the notification checkbox.

    Unhandled Errors section

  3. Click Save. You'll be redirected to the Script page.

3. Create a script deployment

  1. Click Deploy Script.

    Script page with Deploy Script button

  2. Set the Status to Released and the Log Level to Audit. Use Debug only temporarily when troubleshooting, then restore Audit.

    The screenshot below shows Debug; select Audit for normal use.

    Script deployment Status and Log Level fields

  3. Under Audience, select the role you already use with CloseCore.

  4. Click Save. You'll be redirected to the Script Deployment page.

4. Last step

Copy the External URL and paste it into the RESTlet URL field in CloseCore's ERP Connection settings. It should look like:

https://ACCOUNT.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=SCRIPT&deploy=1

Script Deployment page showing the External URL

Updating the RESTlet

CloseCore occasionally makes updates to the RESTlet script. We'll notify you when a new version is ready to install.

  1. Go to Customization → Scripting → Scripts and find the CloseCore script.

  2. Click the link to the .js file under the Script column.

  3. Click Edit to open the file for editing.

    File page with Edit button

  4. Under Select File, upload the new script file.

    Select File field for uploading new script

  5. Click Save.

    File page with Save button

You do not need to redeploy the script after updating.

Questions & support

If you have trouble installing the RESTlet script, we're happy to help guide you through it live. Email support@closecore.com or reach out through Slack or Teams.