Happy Business Starts Here

Highlighted
Guru

How do I set batchSize via REST?

In the SOAP API there was QueryOptions object that allowed you to specify batchSize as well as caseSensitive and fastQuery flags:

https://knowledgecenter.zuora.com/DC_Developers/G_SOAP_API/F_SOAP_API_Complex_Types/QueryOptions

 

I am wondering how to set these same parameters when using the REST API?

https://www.zuora.com/developer/api-reference/#operation/Action_POSTquery

 

The batch size is important when we need to handle large quantities of records in smaller batches (for example to remain within Salesforce governor limits per batch). It is not always possible to handle 2000 records at a time.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Guru

Re: How do I set batchSize via REST?

@gelaimr from Support provided the solution for this:

 

Simply supply the batchSize parameter as a URL parameter to the query API as in the following example:

 

https://rest.zuora.com/v1/action/query?batchSize=10

View solution in original post

2 REPLIES 2
Highlighted
Guru

Re: How do I set batchSize via REST?

@gelaimr from Support provided the solution for this:

 

Simply supply the batchSize parameter as a URL parameter to the query API as in the following example:

 

https://rest.zuora.com/v1/action/query?batchSize=10

View solution in original post

Highlighted
Support SME

Re: How do I set batchSize via REST?

@feisleyThat's right and I also confirmed that it also works the same for other query parameters like caseSensitive and useSingleTransaction.






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √