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