sysparm_limit does not work for the table api

sky7
Kilo Contributor

I am trying to use sysparm_limit to access the kb_knowledge table through the table rest api.

However, when I specify sysparm_limit, e.g., sysparm_limit=1, in the table get request, ServiceNow returns an empty array result array.

{

    "result": []

}

When I remove sysparm_limit, it works returning all the articles.

I've also tried to use sysparm_offset in combination with sysparm_limit, it always gives an empty result array.

Anyone has any thoughts on this? Might there be any settings I need to toggle on to accept this parameter?

 

I'm using Postman to send the request

https://<my_instance>.service-now.com/api/now/table/kb_knowledge?sysparm_limit=1

 

7 REPLIES 7

rajneeshbaranwa
Giga Guru

It is working for me. Are you trying through REST API Explorer ?

It is working fine for the dev instance. But for the prod instance, it does not work. I'm using Postman, but REST API explorer should work the same.

Shrinil
Tera Contributor

Did you find any solution to this issue?

Kiran Patil3
Giga Expert

Hi

Try to use endpoint like this in Postman or any other similar tool.

Change sysparam_limit as needed.

https://<yourinstance>.service-now.com/api/now/table/kb_knowledge?sysparm_limit=10

 

~ Kiran