Tip – 29: Setup Token Based Authentication in NetSuite for calling RESTLet externally

I have been working on setting TBA(Token Based Authentication) in NetSuite several times in past, but every time I have the same task, I have to scratch my head to recall how did I do last time.

So to keep it simple I am adding this tip for people like who face same problem.

I am adding step by step process to keep it simple and easy.

Setup -> Company ->Enable Feature ->Suite Cloud

STEP 1 – Enable required feature for TBA: Before you setup TBA, make sure you enable these 3 features

  1. Check “Client SuiteScript” checkbox
  2. Check “Server SuiteScript” checkbox
  3. Under Manage Authentication Section check “Token-based Authentication” checkbox.

STEP 2 – Go To Setup -> Integration -> Manage Integration -> New

In new Integration page, enter Name(“My Integration Token”) and other fields. Make sure you have selected “Token-based Authentication (TBA)” checkbox. and save the page.

As soon as you save the page, you will get “Consumer Key” and “Consumer Secret“. Save those field values somewhere as next time when will open the page, you won’t get that value. NetSuite is hiding those values for security purpose.

STEP 3 – Go To Dashboard. On Left-hand side below you should see “Manage Access Tokens” link. Click the link. You will be redirected to My Access Tokens Page. Click “New My Access Token” button.

On New Page of “Access Token”, in the “Application Name” dropdown, select the Integration name( “My Integration Token” ) that you have just created. In “Token Name” field enter some name and save the record.

As soon as you save the record, you will be able to see “Token ID” and “Token Secret” field values. Save them somewhere and its going to be hidden next time you open that page.

Now you have all four values that you need to Call RESTLet externally using TBA.

Hope this tip will help you as a handy note whenever you need it.

Happy Coding 🙂