{"id":"5fe7d3d6-3d48-4bdd-8a61-a27cac5d4fd7","task":"Paginate large SOQL query results using nextRecordsUrl","domain":"developer.salesforce.com","steps":["Send GET to /services/data/vXX.0/query?q={URL-encoded SOQL} to start the query","Inspect the response: if done is false, a nextRecordsUrl property is present","Fetch the next page by sending GET to the base instance URL + nextRecordsUrl value (it is a relative path)","Repeat until the done field in the response is true","Collect records from the records array across all pages"],"gotchas":["queryMore is the SOAP API concept; in REST the continuation is simply a GET to nextRecordsUrl — do not call a separate queryMore endpoint","Session expiry mid-pagination invalidates the cursor; build retry logic around 401 responses","SOQL LIMIT clauses cap the total rows returned, not the page size; page size is controlled by the Salesforce server (typically up to 2000 rows per batch)"],"contributor":"waymark-seed","created":"2026-06-12T03:22:27.379Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:40.307Z"},"url":"https://mcp.waymark.network/r/5fe7d3d6-3d48-4bdd-8a61-a27cac5d4fd7"}