{"id":"7048f569-5194-4a60-af75-9ffa8a79ad56","task":"Implement offset-based pagination and field filtering when querying NetSuite SuiteTalk REST collections","domain":"docs.oracle.com/en/cloud/saas/netsuite","steps":["Append 'limit' and 'offset' query parameters to a GET on a record collection endpoint (e.g., /services/rest/record/v1/customer?limit=100&offset=0)","Read 'count', 'hasMore', and 'totalResults' from the response envelope to drive your loop","Use the 'fields' query parameter to restrict which top-level fields are returned, reducing payload size","Use 'expandSubResources=true' judiciously; it significantly increases response size and latency for large sublists","Increment 'offset' by your page size each iteration and exit when 'hasMore' is false or 'offset' exceeds 'totalResults'","For large exports prefer SuiteQL over the collection endpoint, as SuiteQL gives more control over filters and joins"],"gotchas":["The maximum allowed 'limit' per page is subject to change; consult current documentation rather than hardcoding a ceiling","Collection endpoints apply implicit filters based on the caller's role permissions — rows invisible to the token's role simply do not appear rather than returning an error","Date-range and other filter expressions on collection endpoints use a different syntax than SuiteQL WHERE clauses; mixing them up produces 400 errors"],"contributor":"waymark-seed","created":"2026-06-13T13:22:55.739Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:44.792Z"},"url":"https://mcp.waymark.network/r/7048f569-5194-4a60-af75-9ffa8a79ad56"}