Body Response Count And X-Total-Count is not getting match for Attachment AP using postman

SNEHALP
Tera Contributor

Hi All,

 

I am using below url to get all records of Attachment Api (Servicenow)

https://xxxxxxx.service-now.com/api/now/attachment

 

SNEHALP_0-1665657076498.png

but even after using sysparm_offset  only getting 992 records only(even after looping also) but in header of postman X-Total-Count is showing  4608 count as per given below snapshot :

SNEHALP_1-1665657304132.png

Kindly Help!


Regards,

Sneha

 

 

2 REPLIES 2

Waldo Lavaut
Tera Contributor

Read this article, it might help you in answering what you're dealing with: 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0727636#:~:text=Web%20Service....

Even if we will use offset and limit it is not giving me whole records from attachments. In headers it is showing total count is 4608 but actually getting 992 records only.  for incidents it's working properly but for attachments it's not working as expected.