We configure the Latest version of the NetSuite connector and perform some basic operations on it, Like
The Latest NetSuite Connector requires a Consumer Key, Consumer Secret, Token ID, Token Secret, and Account ID

To retrieve these 4 values you must follow a few steps.



You will also need to ensure that all users wishing to login with TBA have the following permissions: Global Permissions  > Web Services = Full and Global Permissions > Departments = View (or higher access level).

Upon saving you will be given a Consumer Key / Consumer Secret.

Save These Credentials, If you lose them, you have to repeat the same step again.

![]()
Once you have these, specify the WSDL version, preferably V2020_2, and the port will be generated automatically, if it is not generated automatically, you can manually type it down as services/NetSuitePort_2020_2. Once all of this is set go to Advanced and check whether the Base NetSuite Address is generated or not.

Now the connector is set and the connection will be successful, test the connection once and we are ready to perform some basic operations.

It retrieves a record from a list based on the internalId provided.
First, we set up a Listener with a path and configure an HTTP connection. and then add a NetSuite Get into the flow. There will be two drop-down lists, in Ref types, we have to select the nature of the record, whether it is a custom record or a record given by NetSuite, in the second one we have to select the list from which we retrieve the record.

Then add a Transform message before the Get operation and metadata will be generated automatically.

Select InternalId and specify the internalId of the record you want to retrieve, Here most of the work is done, But there is one more additional line of code required, we have to specify the schema, only then the operation will work.

In 5th line we specified the schema and referenced it in line number 9 as xsi#”type”: “ns01:RecordRef”
Now add one more Transform message at the end of the flow and transform the output to json. This Will be enough to retrieve a specified record.

To add a record into a list we use this operation, we can fill in some fields and those fields will be added into the list as a single record.
First, we add a listener, specify a path, and set the HTTP connector configuration. Then add a NetSuite Add operation into the flow and set the type to Employee.

Then add a Transform message before the Add operation, This will automatically generate some metadata, select the required fields from the metadata and fill in the values that you want to add, now we have to specify the schema here, once you specify the schema and reference it, It will be something like this.

as you can see the schema is referenced in the 10th line ( If you are generating the Transform message through the metadata, please check the namespace value for record in the 10th line, it is automatically generated as ns0#record , it should be ns01#record )
And at the end of the flow add a Transform message and convert the output to JSON. This will generate the following output.

and when you open the NetSuite employees list, the record which is added is visible.

There are a few more basic operations, they are all similar to the above two methods, the only difference being the transform message, Below are the Transform messages of different methods.



