3

I am currently unable to load more than 2000 records from a SOQL query via the Native iOS Salesforce Mobile SDK. Is there a way of returning all the records in the query? I see that the JSON response has "Total Size: 2703" and a nextRecordsURL value, is there a way of manipulating this somehow to get the complete dataset returned?

6
  • Use querymore in the SOAP API, potentially with a cocoa library like zkSforce
  • Just use the nextRecordsURL endpoint you already have and issue a request for it

(Edit) I do querymore in a few places in ForcePad

| improve this answer | |
  • thanks, have you any code to illustrate? – Bart Sep 13 '13 at 16:42
  • Yup, just added a link above – Jonathan Hersh Sep 13 '13 at 16:57
  • What if I don't want to migrate from REST API to SOAP API? How to retrieve more than 2000 records from SF via REST API? – lu_ko Oct 13 '15 at 14:42
  • lu_ko: Then you can keep using REST and use the nextRecordsURL endpoint. – Jonathan Hersh Oct 14 '15 at 16:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.