Unbale to get complete KB article from servicenow API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 09:45 PM
Hi,
I have an api which gives Kb articles details but not getting complete KB article, its giving only few lines of article actually the article was very big.
Plz suggest any option to get complete KB article story throgth servicenow api
API:https://dev82597.service-now.com/api/sn_km_api/knowledge/articles?query=windows
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2022 09:55 PM
Hi
the result for a knowledge query is exactly as given in your screenshot.
To retrieve the whole article, you have to use another API request. Please see documentation at https://developer.servicenow.com/dev.do#!/reference/api/quebec/rest/knowledge-management-api#knowled...
Kind regards
Maik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2022 12:44 AM
Can use the Table API instead.
https://<instance name>.service-now.com/api/now/table/kb_knowledge?sysparm_query=number%3D<KB Number>&sysparm_fields=text&sysparm_limit=1
FYI, note that Knowledge Management REST API as in the question will allow unauthenticated users access to the knowledge as well.
The Knowledge Management API is publicly accessible and makes any knowledge bases that are publicly accessible available to all users, including unauthenticated users.
https://developer.servicenow.com/dev.do#!/reference/api/paris/rest/knowledge-get-articles-id