<WSProxyInstance>.setBatchSize
→ voidLimits how many rows/objects WSProxy returns per SOAP page on subsequent retrieve calls (default 2500).
Syntax
<WSProxyInstance>.setBatchSize(batchSize)
1 argument
Sets the maximum batch size for retrieve pagination on this WSProxy instance. Does not replace retrieve + getNextBatch — it changes page size for those calls.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
batchSize |
number | Yes | Max rows per page |
Return Value
void
Example
var proxy = new Script.Util.WSProxy();
proxy.setBatchSize(200);
var result = proxy.retrieve("DataExtension", ["Name", "CustomerKey"], {});