Oracle NetSuite (SuiteTalk REST Web Services) – RESTlet Methods

Methods in the Oracle NetSuite (SuiteTalk REST Web Services) Connector’s “RESTlet” Category can be used to call RESTlet scripts within your NetSuite account. These Methods use Custom Object Method Categories and must be copied first before they can be used in a Cycle.

A RESTlet script must be added and deployed inside your NetSuite account before continuing. You will require the “EXTERNAL URL” of the RESTlet script deployment.

Create a Custom Object Method Category

From the Connector Settings page of an installed Oracle NetSuite Connector:

  1. Under the Methods and Fields heading, select the RESTlet method category to expand.
  2. Select the Copy this Category to create a Custom Object Category icon.
  3. Enter the EXTERNAL URL of the RESTlet script deployment in the Object Name text box.
  4. Select Copy.

You can now add Methods from the Custom Method Category into a Cycle.

Use Methods with Pagination

These Methods support inbound pagination:

  • RESTlet Request (GET, Page-Based Pagination)
  • RESTlet Request (POST, Inbound Page-Based Pagination)

You must configure the pagination parameters of these Methods to match the pagination parameters in your RESTlet script.

The GET method sends paging parameters as querystring parameters and the POST method sends paging parameters in the request body.

ParameterDescription
Page Size KeyThe key of the parameter which controls the page size of each request.
Page Number KeyThe key of the parameter which controls the page number of each request.
Zero Based Page Number?Set to true to start the page number from 0 rather than 1.
Default: false

For example, if in your RESTlet script the page size is determined by a pagesize parameter and page number determined by a pagenumber parameter, the Page Size Key parameter should be set to pagesize and Page Number Key should be set to pagenumber.

In instances where the page number starts from 0 rather than 1, set the Zero Based Page Number? parameter to true.