Listing All Record Instances

You can obtain the list of all records of a record type by sending an HTTP GET request to .../services/rest/record/v1/record_type, as shown in the following image.

An example of getting all instances of a record type.

Listing all instances of a given record type can also be understood as a query over the given record type without any criteria. The following is an example of such a request.

          GET https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/customer 

        

The following is a shortened example of a response.

          {
    "links": [
        {
            "rel": "self",
            "href": "https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/customer?limit=1000&offset=0"
        }
    ],
    "items": [
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/customer/107"
                }
            ],
            "id": "107"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/customer/41"
                }
            ],
            "id": "41"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/customer/90"
                }
            ],
            "id": "90"
        }
    ],
    "totalResults": 3
} 

        

Related Topics

General Notices