in servicenow, able maximum of 250 records in soap
request. how all records?
web reference url = https://*****.service-now.com/rm_story.do?wsdl
code:
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) { }
in recordresults
, getting 250 records. how all records ?
also see stack overflow answer provides info. get servicenow records powershell - more 250
note returning large number of records can affect performance of response , may more efficient process query in batches using offsets (i.e., 1-100, 101-200, ...). can achieved using sort order , offset. servicenow rest table api returns link headers requests providing links first, next , last set of records making easy know url query next batch of records.
see: http://wiki.servicenow.com/index.php?title=table_api#methods , under 'response header'.
Comments
Post a Comment