Salesforce REST API Query More than 2000

11,659

part of the result is a nextRecordsUrl property which when you do a GET on it, will return you the next chunk of the results. See the section on query in the rest api docs.

Share:
11,659

Related videos on Youtube

driangle
Author by

driangle

code. music. visuals.

Updated on June 16, 2022

Comments

  • driangle
    driangle almost 2 years

    I'm trying to execute a SOQL query using salesforce REST API which will return 2,749 results. However it seems there is a limit of 2,000 results that can be returned for a given request.

    Is there a way to query the remaining 749 results without using the OFFSET keyword? (it's not currently supported in my production environment).

    I looked into this and found a queryMore function but I can't find a way to call it through the REST API.

  • driangle
    driangle about 12 years
    Ah, I feel dumb, I was not looking at the actual response that was coming back, just manipulating it in code. Thanks so much.