Fetching Full Incident List from HI – CIDCommunicator Limitation?

Sreekarr Yallap
ServiceNow Employee
ServiceNow Employee

Hello,

I'm using CIDCommunicator within a Script Include to retrieve incident records from HI, but it seems to return a maximum of only 50 records. Is there an alternative way to retrieve the complete set? Any guidance would be greatly appreciated. Thank you.

var encoded_query = "sys_created_by=datacenter_sync^sys_created_onON2025-07-31@javascript:gs.dateGenerate('2025-07-31','start')@javascript:gs.dateGenerate('2025-07-31','end')^assignment_group=5c4d328a4fdfde00f347524e0210c72a^ORassignment_group=7dc3c7ce4f931a403ed8b85e0210c751^short_descriptionLIKEIssue occurred during provisioning^caused_byISNOTEMPTY";
var response = CIDCommunicator.read("HI_CHANNEL", {query: encoded_query}, {tableName: "incident"});
gs.info(response);
gs.info(JSON.stringify(response));
var outputLength = response.output.length;




1 REPLY 1

Mark Manders
Mega Patron

Will this work on any instance, or is this just an internal ServiceNow thing that customers can't access? I have been waiting for an integration between Hi and customer instances since Eureka.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark