PDFs in articles and Knowledge Base of documents

dgerlock
Tera Contributor

Newbie here and I'm getting frustrated and hoping I can find the help here that I need.  I'm trying to do 2 things:

 

1) Embed PDFs into knowledge articles from Documents/Documents.  Is there any way to either embed, link, or attach a PDF from Documents/Documents?

2) Create a KB for documents not necessarily creating articles first.  Is there a way to all access to Documents/Documents as a KB or some such thing in Service Portal or Knowledge Portal?

 

I may be missing something (or lots of things!) but is seems that even though you can upload PDFs but not be able to access them for general use.

 

Thanks!!

1 ACCEPTED SOLUTION

Dave Littlejohn
Tera Guru

For viewing the pdf within the knowledge article, we've attached the pdf to the knowledge article and then used the following html code and replaced the sys_id with the attachment's sys_id:

<p><iframe src="/$viewer.do?sysparm_stack=no&amp;sysparm_sys_id=5f6493b31b6fe5149e4e8663cc4bcb6e" width="100%" height="1000" allowfullscreen="allowfullscreen"></iframe></p>

 

View solution in original post

15 REPLIES 15

I don't see the URL (src) for the iframe. maybe something is removing it for your instance?

iframes has to be enabled on the backside. iframe needs to be added to the HTML_WHITELIST. iframes will not work until that part has been completed. So I would first confirm that is done. 

Hi, 

When I use this html coding, instead of the pdf being displayed in the KB, I get a "attachment can not be found" although the pdf file is attached. Would you have any suggestions for resolution? 
Thank you in advance. 

Hi trout1974,

 

With the Amaze application, you can easily add a PDF (or even a video) to a KB by simply dragging and dropping it into the article.  No HTML coding needed.  It's a lot easier.  Plus there's an analytics dashboard in Amaze that can help you assess your knowledge management activities in real-time. 

 

You can order a free trial of Amaze through the ServiceNow Store if you want to check it out. You can get more information at www.intellective.co/amaze as well.  

did you update the sys_id to match your attachment;s sys_id? If so, it might be a permissions (ACLs) issue.