How to fetch both Body feilds and line fields of a record in REST Webservices?

REST web services do not automatically expand sublists and subrecords. You can use the expandSubResources query parameter to expand sublists and subrecords. If the query parameter is not used, the response contains only the body fields of the record, and the sublists and subrecords are represented by links. See the example in Getting a Record Instance.

The following is an example where the query parameter is used.

GET https://demo123.suitetalk.api.netsuite.com/services/rest/record/v1/customer/107?expandSubResources=true

Copy

Leave a comment

Your email address will not be published. Required fields are marked *