在ServiceNow中,我最多只能在请求中获得250条记录。SOAP
如何获取所有记录?
Web Reference Url = https://*****.service-now.com/rm_story.do?WSDL
代码:
var url = "https://*****.service-now.com/rm_story.do?SOAP";
var userName = *****;
var password = *****;
var proxy = new ServiceNow_rm_story
{
Url = url,
Credentials = new NetworkCredential(userName, password)
};
try
{
var objRecord = new Namespace.WebReference.getRecords
{
// filters..
};
var recordResults = proxy.getRecords(objRecord);
}
catch (Exception ex)
{
}
在recordResults
中,我只得到250条记录。如何获取所有记录?