Set up the NetSuite 2019.1 RESTlet
This article provides a quick walkthrough of the installation and setup of the NetSuite Restlet. This will greatly improve the look up times for interactions between the NetSuite API and Tenfold.
Note
If you have changed your NetSuite Admin since completing these steps, you will need to ensure the new Admin is the owner of the installed scripts. Failure to update the owner may prevent Tenfold from successfully locating CRM Records.
To set up the NetSuite 2019.1 RESTlet, complete the following procedures:
You will need a Contact, Lead, or Account to associate unmatched calls in your CRM. You can designate a contact that already exists or you can create a new one and name it something such as “Unmatched Calls.”
Download RESTlet scripts from https://storage.googleapis.com/tenfold-netsuite-restlet/tenfold-oracle-netsuite-restlet.zip.
After downloading the ZIP file, log in to NetSuite and upload the files.
Click Documents > Files > SuiteScripts.
Click Advanced Add.
Under ZIP ARCHIVE TO ADD, click Choose File and then select the
tenfold-restlet.zip
file that you downloaded in the first step.Create a new folder called tenfold-restlet.
Ensure the following files are in the folder:
load.js
netsuite_toolkit.js
search.js
upsert.js
Create four RESTlet endpoints that correspond to each of the following uploaded files:
load.js
netsuite_toolkit.js
search.js
upsert.js
For each of the the scripts, perform the following steps:
Navigate to Customization > Scripting > Scripts.
Click New Script.
Click the down arrows in the SCRIPT FILE field and then click List.
From the first dropdown, click SuiteScripts : tenfold-restlet and select the script you are setting up.
Click Create Script Record and name the script “Tenfold <script name>”.
This will include Tenfold Load, Tenfold Search, and Tenfold Upsert, depending on the script you are creating.
In the POST FUNCTION field, enter <script name>PostHandler.
Use these names to correspond to the downloaded files:
load.js -
→loadPostHandler
search.js
→searchPostHandler
upsert.js
→upsertPostHandler
endpoint.js
→endpointPostHandler
Under Libraries, make sure to include
netsuite_toolkit.js
for each:Click Save then Deploy Script or Save and Deploy.
Set up the deployment as follows:
Status – Released
Departments – Admin
Employees – Select All
Click Save, and then select RESTlet from the next page.
After deploying, copy the EXTERNAL URL for the script.
This is provided in the CRM settings on the Tenfold Dashboard. You can access it from Customization > Scripting > Script Deployments.
Log on to your Tenfold Admin Dashboard.
Navigate to Company Settings > CRM.
Click Change Advanced Options and paste the External URLs from NetSuite.
When finished, click Save.
Questions? Feel free to reach out to our support team here.