which Api used to get a total incident records count

bharathkumar Da
Tera Contributor

which Api used to get a total incident records count?

1 REPLY 1

kamlesh kjmar
Mega Sage
Mega Sage

Hi @bharathkumar Da ,

 

For Total incident count use Aggregate API. Below the format (replace your_instane_id with your instance name:

 

https://your_instance_id.service-now.com/api/now/stats/incident?sysparm_count=true

 

kamleshkjmar_0-1667892337985.png

 

 

if you have to apply filter then use below format

 

https://your_instance_id.service-now.com/api/now/stats/incident?sysparm_query=active%3Dtrue&sysparm_...

 

I hope this help.

 

Please mark this helpful if this helps and Accept the solution if this solves your issue.

 

Regards,

Kamlesh