+ Start a Discussion
dev seevibesdev seevibes 

How to get ALL contacts using the salesforce APIs

Hello

We read in the documentation ( https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_sosl_limits.htm ) that there is a limit of 2000 records for a query in the salesforce database. We need to query all contacts that are available to the connected user, is there a way to do a cursored query until it goes through all contacts? Or something else?
Hargobind_SinghHargobind_Singh
You can use queryMore, here is a post that is similar what you are looking for: 

http://salesforce.stackexchange.com/questions/22631/workaround-for-offset-2000-limit-on-soql-query
Jacob CooperJacob Cooper
Our agency has more than 6000 contacts of UK and US writers and https://domyhomeworkonline.net/ homework experts. But I will need to read 50 contacts per API call with the paging support. Is it possible to do so with SSQL via REST API?