Unbale to get complete KB article from servicenow API

Phanikanth
Kilo Contributor

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=windowsfind_real_file.png

2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Hi @Phanikanth 

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

Hitoshi Ozawa
Giga Sage
Giga Sage

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