This article outlines how to fetch/connect to the NetSuite application using the Token based authentication mechanism with the REST API services / Boomi NetSuite connector.
User should be able logging into the NetSuite application using the 'Administrator' previlige or user specific role based credentials and then change the role from a specific user 'Role' to 'Administrator' role from the top most right corner.
Now, we need to make sure the 'REST webservice' features are enabled.
ss
2.1) To do so, navigate to Setup --> Company --> Enable features --> Then navigate to 'Suite Cloud' tab.
Now, we need to select 'SuiteCloud' tab as given below:
2.2) Under the 'SuitTalk(WebServices)' section, make sure REST Web Services checkbox is checked(Enabled) and also under the 'Manage Authentication' Section —> Token Based Authentication checkbox is checked(Enabled)
Now lets navigate back to the NetSuite Suite Application and this step is to create the Integration.
3.1) Navigate to Setup --> Integration —> Manage Integration —> New Integration —> Give the name as ‘Boomi Rest Services Integration’ and make sure the Token Based Authentication is enabled and OAuth2.0 is disabled and TBA: Authorization Flow is also disabled and Save the Integration.
3.2) Important thing to note here is don’t navigate away from this integration page and on the bottom of the page under the Client Credentials section. If you move away you will loose the details of Consumer key/ secret. You can copy the Consumer Key / Client Id , Consumer Secret / Client Secret.
Note: Now, next step is to create a Access Token and To do so go to home dashboard by opening a new tab don’t navigate away from this page and you will loose the credentials.
4.1 Click on the 'Manage access Tokens' under the "Settings" section on the left most corner which will navigate to the My Access Tokens UI and on this UI user can see the name of the Tokens which was saved in the previous step 3.1. In this case, Token Access Name ‘Boomi Rest Services Integration' as the application name.
4.2 Click on the New My Access Token button and select the application name from the drop down as 'Boomi Rest Web Services' against we need to create the Access Token.
and click on Save and you can see we have logged as ‘Administrator’ role and if you are not logged in as Administrator role just make sure your role as access to Rest Web Services permissions and also permission for access tokens . Token Id and Token Secret can be copied from here.
On the NetSuite Connection dialogue window , enter the test Account Number , Consumer Key, Consumer Secret, Token Id and Token Secret created in the above steps and test the connection.
Now, Let’s open a Postman and postman is an integration tool which simulates the other end of the Integration(NetSuite) it connects to NetSuite and provides the data. In other words, to create an integration with NetSuite Some other system can read and post the data and we are using the Postman as the other system.
Now, lets go to the Setup --> Company --> Company Information and copy the URL which is under SUITETALK (SOAP AND REST WEB SERVICES) section shown below and copy it to the postman Get URL as the "First" part of the URL: https://tstdrv1178941.suitetalk.api.netsuite.com and "Second" part of the URL is from the API documentation of the "NetSuite"
First Part of the URL: https://tstdrv1178941.suitetalk.api.netsuite.com
https://[accountid].suitetalk.api.netsuite.com/services/rest/record/v1
https://tstdrv1178941.suitetalk.api.netsuite.com/services/rest/record/v1