Map imported HTML to Source Code in Knowledge?

regftw
Kilo Contributor

We have X amount of articles to import into our system, we want to achieve the data import using a transform map, but we can only map to say the "Text" field in terms of displaying data.

Our issue is the data is already in HTML format, with tags, is there any way to map the html to the "source code" function?

As a bonus, using the new category picker, how does one map to X category, 4 trees down the category picker?

Thanks,

Roland

5 REPLIES 5

Mwatkins
ServiceNow Employee
ServiceNow Employee
  1. Put the raw HTML into a field in your Data Source
    Screen Shot 2016-07-22 at 10.31.26 AM.png
  2. Use the Transform Map to insert the raw HTML into the kb_knowledge.text field
    Screen Shot 2016-07-22 at 10.26.09 AM.png
  3. I tested this and when viewing the article the system knows to interpret the HTML
    Screen Shot 2016-07-22 at 10.27.39 AM.png


If you copy/paste raw HTML into the interpreted side of a WYSIWYG editor that is what you will get.