Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Force.com REST API batchSize #91

Open
ghost opened this issue Feb 6, 2017 · 1 comment
Open

Force.com REST API batchSize #91

ghost opened this issue Feb 6, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 6, 2017

Hey guys,

I was running some SOQL queries and noticed that even though I set a limit of 1000 it still returns records at a max of 250 at a time. I'm not aware of anything from the org side that is setting this, so was looking at the REST API Developer Guide and found the Query Option Header.

I've added this into the Client.ajax beforeSend:
xhr.setRequestHeader('Sforce-Query-Options', 'batchSize=1000');
but it doesn't seem to affect the returned records batch size at all.

Any ideas?

@appitekltd
Copy link

Hey,

We are also having this issue, we are setting a LIMIT of 500 on our queries, Account query returns all 500, but Contact or Lead query returns in batches of 200.

We are not setting a Sforce-Query-Options header, and when we do it does not affect the the result.

If we set an OFFSET with the LIMIT 500, Account gives us 500, but Contact just gives 200, and also says that it's done (no query more URL)

Anyone know why this would be happening?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants