Configuration Page
Configure the Oracle NetSuite REST Adapter based on the operation you selected on the Basic Info page.
Operation Type: CRUD
Select the object, operation, and request type to execute your operation.
| Element | Description |
|---|---|
|
Select Object |
Select the object on which to perform the operation. For example: account. |
|
Select Operation |
Select the operation to perform. For example: Get list of records or Get record. |
|
Request Type |
Select the request type:
|
Operation Type: SuiteQL Search
Provide the SuiteQL query, binding parameters (along with data type and value), and request type.
| Element | Description |
|---|---|
|
SuiteQL Query |
Write the SuiteQL query you want to execute. Note: Only |
|
Binding Parameters |
If your query includes binding parameters (marked as
Note: Ensure that the parameter names you provide match exactly with the names used in the SuiteQL query to avoid errors. |
|
Request Type |
Select the SuiteQL query operation to be synchronous or asynchronous. |
Operation Type: Asynchronous Operations
- Check Job Status
- Retrieve Task ID
- Fetch Async Result
- Select Check Job Status to find the status of an asynchronous operation (CRUD/SuiteQL) that you performed earlier.
- Select Retrieve Task ID to fetch the task ID in the response.
- Use this task ID and job ID to retrieve the final output using the Fetch Async Result operation.
The following table describes how to configure this action.
| Element | Description |
|---|---|
|
Choose the type of asynchronous request that was initiated - CRUD operation or SuiteQL Search |
Select the operation type:
|
|
Choose how to generate the response mapper for the asynchronous SuiteQL operation (Appears for the SuiteQL Search operation type.) |
Select how you want to generate the response
mapper:
|
|
Async Operation Object (Appears for the CRUD operation type.) |
Select the object on which you performed the CRUD operation (request type: asynchronous). For example: account. |
|
Async Operation Type (It should be action) (Appears for the CRUD operation type.) |
Select the operation/action that you selected while performing the CRUD operation (request type: asynchronous). For example: Get list of records. |
|
SQL Query (Appears if generating a response mapper using SQL.) |
Provide the SQL query used in the asynchronous request to populate the response mapper. |
|
JSON (Appears if generating a response mapper using JSON.) |
Provide a sample JSON payload to generate the response mapper for your asynchronous query. |
Operation Type: RESTlet Calls
- Create using RESTlet
- Retrieve using RESTlet
| Element | Description |
|---|---|
|
Script ID |
Enter the script ID associated with the RESTlet script deployed on the NetSuite application. |
|
Deploy ID |
Enter the deploy ID associated with the RESTlet script deployed on the NetSuite application. |
|
Sample JSON Request |
Enter the sample JSON request payload. |
| Sample JSON Response |
Enter the sample JSON response payload. |
| Parameter Key and Parameter Type |
Optionally add an extra parameter to the script by providing a parameter key (name) and data type. Values for these parameters can be provided at runtime. Ensure that you provide values of the same data type to avoid any errors. |
Operation Type: Dataset
- Get List of Datasets
- Execute Datasets
When you select Execute Datasets as the action, the Configuration page is displayed. In the Select Dataset field, choose the required dataset from the drop-down list.