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

Deepak Ingale1
Mega Sage

Hello Members,

In the last week, I had come up with a blog post on how to import Microsoft word document files to ServiceNow containing images.

Knowledege Base - Part 1: Import bulk 'docx' and 'doc' files with images to ServiceNow as KB with Po...

There was an query from   MathewKuriakose   in a thread How to improve the paste feature in Knowledge editor? to provide the script for importing 'text' files in bulk without affecting the formatting in ServiceNow.

This article will sum up the steps on how to achieve this goal with the help of Powershell by converting text files to xls and maintain their formatting..

Requirements:

Requirements are same as mentioned in previous article.

Steps to create your powershell script:

Steps are same as mentioned in previous article.

Limitations:

Limitations are same as mentioned in previous article

Powershell code to convert text without losing formatting :

Code has been attached in the document file. You can download the same.

Kindly give it a like or bookmark this post if it assists you.