How to get count of all the records of in a ServiceNow table via a REST API call?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2021 01:58 PM
How to get count of all the records of in a ServiceNow table via a REST API call?
Thanks,
Vishal
Labels:
- Labels:
-
Agile Development
-
Multiple Versions
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2021 02:24 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2021 06:51 AM
Thanks, it helped.