gpt4 book ai didi

rest - Salesforce SOQL 在 REST api 中设置批量大小

转载 作者:行者123 更新时间:2023-12-02 14:28:40 24 4
gpt4 key购买 nike

有没有办法将批量大小设置为 2000(最大)?我知道可以通过soap API 添加一个选项:see here

有没有办法通过 REST API POST 请求来实现此目的?

最佳答案

您可以使用选项 header 设置 REST 批量大小:

Field name

Sforce-Query-Options

Field values

batchSize — A numeric valuethat specifies the number of records returned for a query request.Child objects count toward the number of records for the batch size.For example, in relationship queries, multiple child objects may bereturned per parent row returned. The default is 2,000; the minimum is200, and the maximum is 2,000. There is no guarantee that therequested batch size will be the actual batch size; this is done tomaximize performance.

Example

Sforce-Query-Options: batchSize=1000

文档: http://www.salesforce.com/us/developer/docs/api_rest/Content/headers_queryoptions.htm

关于rest - Salesforce SOQL 在 REST api 中设置批量大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18494786/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com