You need to sign in to do that
Don't have an account?

REST Api return in XML...
I am trying to query using the REST api. If the result is under 2000 records it works great here is what I use...
https://na10.salesforce.com/services/data/v22.0/query.xml?q=SELECT+id+FROM+Message_vod__c
Then I add the session Id to the header and I am good to go. If the query is over two thousand records the nextRecordsUrl is returned and then I will proceed to call something like this...
https://na10.salesforce.com/services/data/v22.0/query/01gF000000CNh00IAD-2000
Problem is that this is now returned via JSON rather than XML. How do I get that next set of records in XML? I tried changing the URL to...
https://na10.salesforce.com/services/data/v22.0/query.xml/01gF000000CNh00IAD-2000
with no luck. Any thoughts?
https://na10.salesforce.com/services/data/v22.0/query/01gF000000CNh00IAD-2000.xml
or set the Accept htttp header in your request (Accept: application/xml), which i would generally recommend over using the .xml extension.
All Answers
https://na10.salesforce.com/services/data/v22.0/query/01gF000000CNh00IAD-2000.xml
or set the Accept htttp header in your request (Accept: application/xml), which i would generally recommend over using the .xml extension.
Works perfectly, thanks a lot!!