sysparm_limit does not work for the table api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2020 03:24 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2020 03:57 PM
It is working for me. Are you trying through REST API Explorer ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2020 04:06 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2023 10:50 AM
Did you find any solution to this issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2020 03:58 PM
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