- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 01-06-2017 02:35 PM
I wrote a bulk KB upload console application in C# .Net that will recursively import all .docx files in a targeted local computer directory structure into the ServiceNow KB Submissions table. It uses the save as HTML file mechanism built into Microsoft Word to convert to HTML, cleans up styling, and uploads images as well. It's not perfect, but it's pretty effective. Feel free to try it out, feedback is welcome: GitHub - mmoody1977/BulkSNKB
Requires Windows OS and Microsoft Word. It does leave a dedicated images folder and the converted HTML file behind in the targeted directory for each document respectively. Just download and extract the .zip file from the GitHub repository above, then follow the instructions below for usage.
Usage Information:
C:\ >BulkKBUpload.exe /? Bulk uploads all .docx Word documents in a targeted folder, as an HTML based KB Article, to the kb_submission table on a Service Now instance.
BulkKBUpload folderpath [/U:username] [/P:password] [/I:instance]
folderpath The complete path to the folder containing the documents to convert and upload.
/U:username The Service Now username that has permissions to create kb_submission records.
/P:password The password for the supplied username. /I:instance The Service Now instance hostname. Example: myinstance.service-now.com
Example usage: BulkKBUpload "C:\Docs" /U:mmoody /P:p@ssw0rd! /I:moodydev.service-now.com