How to get count of all the records of in a ServiceNow table via a REST API call?

Vishal Kumar1
Kilo Contributor

How to get count of all the records of in a ServiceNow table via a REST API call?

 

 

Thanks,

Vishal

2 REPLIES 2

Tony Chatfield1
Kilo Patron

Hi, you can use the aggregate API to get a record count by leveraging the query parameter sysparm_count=true

https://developer.servicenow.com/dev.do#!/reference/api/orlando/rest/c_AggregateAPI

/api/now/stats/incident?sysparm_count=true

 

Thanks, it helped.