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

shloke04
Kilo Patron

Hi,

Have a look at below thread , this might be useful for you with steps mentioned on how to download articles which you want:

https://community.servicenow.com/community?id=community_question&sys_id=7ffbd8bb1b1f94d4305fea89bd4bcb7c

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hi,

The have gone through it link,not useful for me.

Omkar Mone
Mega Sage

Hello,

 

If there is any attachment on the KB, we would be able to download it using the attachment table API. IS that what you are looking for.

 

Regards,

Omkar.

Hello,

I don't have attachment in the api response, Just have the "test" field and value contains big description so want to download that description,that description contains article information.