How to download Knowledge base articles from servicenow API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2022 11:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 01:03 AM
Hi
why do you ask the same question four times?
The fact that there is no way to download OOTB articles as PDF does not change just because you ask it often enough.
The only workaround I can imagine at the moment is building a Scripted REST API and generating the PDF version manually on server-side
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022 01:06 AM
Thanks for the response.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2022 04:18 PM
To download knowledge article as pdf, first convert the article to pdf file as an attachment to the knowledge page.
Example script to convert knowledge article to pdf attachment.
function convertKB2PDF(sysID ) {
var v = new sn_pdfgeneratorutils.PDFGenerationAPI;
var gr = GlideRecord('kb_knowledge');
if (gr.get(sysID)) {
var filename = gr.number;
var html = gr.text.toString();
var result = v.convertToPDF(html, "kb_knowledge", sysID, filename);
}
}
convertKB2PDF('<knowdge article's sys_id>');
Then, the pdf file can be downloaded as an attachment on the Knowledge page.
OR, the file can also be downloaded using Attachment API.
I've provided a PowerShell script to download attachment file in the following thread.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2022 05:02 PM
could be usefull
- Integration SMS
- Integration Data source
- Integration rested API
- Integration WebService