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?

1

1 Answer 1

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

4
  • thanks, have you any code to illustrate?
    – Bartley
    Sep 13, 2013 at 16:42
  • Yup, just added a link above Sep 13, 2013 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, 2015 at 14:42
  • lu_ko: Then you can keep using REST and use the nextRecordsURL endpoint. Oct 14, 2015 at 16:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .