download more than 4000 Contacts details from Salesforce.com to iPhone
I am trying to download more than 4000 contacts from Salesforce.com. I go through al开发者_如何学运维l the API available for iPhone/iPad development. I use the zkSforce Classes provided for the iPhone/iPad application development. Still i didn't find any proper solution for the same.So guys please help me out.
You need to use the queryMore
method on ZKForceClient
, first run query
and the returned ZKQueryResult
object will contain your first 1000 records, and if there are more than that on Salesforce it will contain a BOOL
set to NO
, the BOOL is named done
, check that condition, if it is NO
then there will be an NSString
in queryLocator
. You will use this string to pass to queryMore
which also returns a ZKQueryResult
object that you can use to repeat this pattern.
For info on queryLocator check out the documentation, http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_querymore_querylocator.htm
Salesforce is providing mobile SDK using REST.
Check this following link, that helps you where to start with.
https://stackoverflow.com/a/14154863/299662
精彩评论