• Home
  • Debugging and Testing a NetSuite RESTLet using Advanced REST client
Category: Uncategorized

Debugging and Testing a NetSuite RESTLet using Advanced REST client

Pre-requisite:

  • Google chrome browser
  • NetSuite Account

Steps and procedure:

Create a RESTLet in NetSuite.

  1. For the sake of simplicity, let’s use the following script:
  2. function getCustomerInfo()
  3. {
  4. var record = nlapiLoadRecord('customer', '111');
  5. varcompanyName = record.getFieldValue('companyname');
  6. returncompanyName;
  7. }
  8. Deploy the script.

Download the Advanced REST Client

  1. Go to Chrome webstore: https://chrome.google.com/webstore?utm_source=chrome-ntp-icon
  2. In the chrome webstore, search for “Advanced Rest Client”. This is a free chrome app. Install.

  3. Launch the Advanced REST client app in the chrome web browser.
  4. Create a New Request
  • In the URL, put the external URL: https://rest.na1.netsuite.com/app/site/hosting/restlet.nl?script=15&deploy=1
  • Select GET method
  • In the Raw Headers paste the following:

  1. Authorization: NLAuthnlauth_account=TSTDRV12345, nlauth_email=admin@upayasolution.com, nlauth_signature=upaya123, nlauth_role=3

  2. Substitute the highlighted data with the information from your account.
  3. Once done, click Send.
  4. In the Raw response field, it will return the data from NetSuite, using the RESTleturl.
  5. This will also work with other HTTP method such as POST, PUT and DELETE. This method is particularly helpful when debugging or testing RESTlet in NetSuite if you are working with HTTP integration.


- Source (NetSuite)

Starting the conversation is easy.


You're just a few keystrokes away from a conversation that could change your business.




Message sent. We'll get back to you soon!

Contact us

Leave us a message, and we will reply shortly.

Required *