getAll

In SOAP web services, the getAll operation is used to retrieve a list of all records of the specified record type.

SOAP Request

The following sample shows how to retrieve the list of all currency records.

            <soapenv:Body>
   <getAll xmlns="urn:messages_2025_1.platform.webservices.netsuite.com">
      <record recordType="currency"/>
   </getAll>
</soapenv:Body> 

          

SOAP Response

The following sample shows the response to the previous request.

            <soapenv:Body>
   <getAllResponse xmlns="urn:messages_2025_1.platform.webservices.netsuite.com">
      <platformCore:getAllResult xmlns:platformCore="urn:core_2025_1.platform.webservices.netsuite.com">
         <platformCore:status isSuccess="true"/>
         <platformCore:totalRecords>2</platformCore:totalRecords>
         <platformCore:recordList>
            <platformCore:record internalId="1" xsi:type="listAcct:Currency" xmlns:listAcct="urn:accounting_2025_1.lists.webservices.netsuite.com">
               <listAcct:name>US USD</listAcct:name>
               <listAcct:symbol>USD</listAcct:symbol>
               <listAcct:isBaseCurrency>true</listAcct:isBaseCurrency>
               <listAcct:isInactive>false</listAcct:isInactive>
               <listAcct:overrideCurrencyFormat>false</listAcct:overrideCurrencyFormat>
               <listAcct:displaySymbol>$</listAcct:displaySymbol>
               <listAcct:symbolPlacement>_beforeNumber</listAcct:symbolPlacement>
               <listAcct:locale>_unitedStatesEnglish</listAcct:locale>
               <listAcct:formatSample>$1,234.56</listAcct:formatSample>
               <listAcct:exchangeRate>1.0</listAcct:exchangeRate>
               <listAcct:currencyPrecision>_two</listAcct:currencyPrecision>
            </platformCore:record>
            <platformCore:record internalId="2" xsi:type="listAcct:Currency" xmlns:listAcct="urn:accounting_2025_1.lists.webservices.netsuite.com">
               <listAcct:name>UK GBP</listAcct:name>
               <listAcct:symbol>GBP</listAcct:symbol>
               <listAcct:isBaseCurrency>true</listAcct:isBaseCurrency>
               <listAcct:isInactive>false</listAcct:isInactive>
               <listAcct:overrideCurrencyFormat>false</listAcct:overrideCurrencyFormat>
               <listAcct:displaySymbol>&#xA3;</listAcct:displaySymbol>
               <listAcct:symbolPlacement>_beforeNumber</listAcct:symbolPlacement>
               <listAcct:locale>_unitedKingdomEnglish</listAcct:locale>
               <listAcct:formatSample>&#xA3;1,234.56</listAcct:formatSample>
               <listAcct:exchangeRate>0.6</listAcct:exchangeRate>
               <listAcct:currencyPrecision>_two</listAcct:currencyPrecision>
            </platformCore:record>
         </platformCore:recordList>
      </platformCore:getAllResult>
   </getAllResponse>
</soapenv:Body> 

          

REST Request

In REST web services, you can obtain the list of all records of a record type by sending an HTTP GET request as in the following example.

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

          

REST Response

The following example shows the result of the previous REST request.

            {
    "links": [
        {
            "rel": "self",
            "href": "https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/currency/"
        }
    ],
    "count": 5,
    "hasMore": false,
    "items": [
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/currency/2"
                }
            ],
            "id": "2"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/currency/3"
                }
            ],
            "id": "3"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/currency/4"
                }
            ],
            "id": "4"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/currency/1"
                }
            ],
            "id": "1"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/currency/5"
                }
            ],
            "id": "5"
        }
    ],
    "offset": 0,
    "totalResults": 5
} 

          

Related Topics

General Notices