如何在 soap 请求 url 中添加限制参数?

How to add limit parameter in the soap request url?

我的目标是从 ServiceNow. By default, I am able to get 250 records. But I need to get all the records. I learnt from here 中的 table 获取所有记录 我们可以在 soap 请求中设置限制 url.

代码:

var url = "https://*****.service-now.com/rm_story.do?SOAP";

Additional code in getting records for reference

我在上面url加上limit参数为

https://*****.service-now.com/rm_story.do?&limit=300&SOAP

尽管如此,我得到了相同的 250 条记录

这是添加限制的正确方法吗?如果没有,如何在 ServiceNow 的 SOAP 请求 url 中添加限制?谢谢。

不行,需要看一下first_row(可能结合limit):

first_row: Instruct the results to be offset by this number of records from the beginning of the set. When used with __last_row has the effect of querying for a window of results. The results are inclusive of the first row number.

_limit 参数必须在 http 请求的正文中传递,而不是 url。见答案 ServiceNow - Getting all records 例如使用 _limit 参数对 ServiceNow SOAP API 的 http 请求。