The CreatorCon Call for Content is officially open! Get started here.

how to download knowledge base articles from servicenow through api

Phanikanth
Kilo Contributor

Hi,

I have an  servicenow api which gives the KB(Knowledgebase ) articles  ,So I want to download the articles separately through  api .In the below response there is TEXT field in the form of description it is the article .Please suggest API. 

https://dev82597.service-now.com/api/now/table/kb_knowledge?sysparm_query=number=KB0000003

Below is the response from api:

{
    "result": [
        {
            "parent": "",
            "short_description": "Managing Settings in Internet Explorer 10 for\n\t\t\tWindows 8\n\t\t",
            "roles": "",
            "wiki": null,
            "direct": "false",
            "rating": "",
            "description": "",
            "language": "en",
            "source": "",
            "sys_updated_on": "2021-02-24 15:43:43",
            "disable_suggesting": "false",
            "sys_class_name": "kb_knowledge",
            "number": "KB0000003",
            "sys_id": "3b0fccee0a0a0b9b00d34b36ea41a43e",
            "use_count": "",
            "sys_updated_by": "johnoliver.mendoza",
            "flagged": "false",
            "disable_commenting": "false",
            "sys_created_on": "2019-02-17 22:10:48",
            "sys_domain": {
                "link": "https://dev82597.service-now.com/api/now/table/sys_user_group/global",
                "value": "global"
            },
            "valid_to": "2030-04-07",
            "retired": "",
            "workflow_state": "published",
            "text": "<div id=\"article-title\" class=\"clearfix\" style=\"margin: 0px; padding: 35px 0px 0px; border: 0px; outline: 0px; zoom: 1; color: #404040; font-family: open_sansregular, Arial, Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: auto>
},
            "can_read_user_criteria": "",
            "sys_mod_count": "9",
}
11 REPLIES 11

Sanjay Bagri1
Tera Guru
Tera Guru

Hi Phani,

 

Pease use the Knowledge Managment API for this and please go through below link for more information 

Knowledge Management REST API

 

Please mark my answer is correct and helpful.

Thanks

Sanjay Bagri

QBrainX Pvt. Ltd.

Hi,

I  have used use the Knowledge Management API site and could not able to access the  "api/sn_km_api/knowledge/articles", Please suggest.

Hi,

I have used below api to print the article, but its not printing.Plz suggest me to make to print.

https://<instance-name>.service-now.com/kb_knowledge.do?sys_id=<sys_id_of_kb_article>&sysparm_media=...

Hi,

I have used below api to print the article, but its not printing.Plz suggest me to make to print.

https://<instance-name>.service-now.com/kb_knowledge.do?sys_id=<sys_id_of_kb_article>&sysparm_media=...

Hitoshi Ozawa
Giga Sage
Giga Sage

To just get the "text" field, add "&sysparm_field=text" to the url.

https://dev82597.service-now.com/api/now/table/kb_knowledge?sysparm_query=number=KB0000003&sysparm_f...