fosborne
ServiceNow Employee
ServiceNow Employee

What are we trying to accomplish?

  • Have you even wanted to just view documents rather than downloading them from a Knowledge Base Article?
  • Have you wanted to embed Videos in Knowledge Base Articles?
  • Have you ever wanted to view an attachment on a form rather than having to download to see the contents?

Why I put together this document?

  • Many of the default settings do not allow you to embed code 
  • Some confusion of the various settings necessary to allow embedding of code to show documents or videos.

 

Comments
Tom Boyle
Mega Expert

Thanks for the guide on this.

We have tried to follow it however are receiving a "refused to connect" error message.

find_real_file.png

fosborne
ServiceNow Employee
ServiceNow Employee

You should get prompted for authentication to the Google drive unless it is an open link.  Note the embedding is just HTML.

I have not tested with Google Drive html embedding however.

Tom Boyle
Mega Expert

Unfortunately not, we just receive the refused to connect message.

Yuri Yoshinami
Tera Contributor

@fosborne 

Hi, I have changed the settings as explained at "Changes to enable your knowledgebase to show embedded files". and when I finished it, I couldn't select the "Knowledge" >> "articles" >> "create new"". Nothing has appeared and I couldn't create new knowledge articles.

I have changed the setting as the default one and now it is working fine.

Could you kindly tell us what was the reason and whether it is happening to your instance also?

 

Yuri

Michael126
Mega Explorer

@Yuri Yoshinami 

 

Did you find a solution?

Chuck_P
Tera Contributor

We are having this problem in now in Washington DC - When the article is submitted it loses only the iframe line of code with the src and URL code. Basically, we are experiencing what this guy on youtube experienced and couldn't solve https://youtu.be/wGZ_ADn87wU?si=nXs4jIFf_WC0xB4Y.  

austin973347979
Mega Explorer

I am also experiencing the exact same issue with embedding scribe guides into a KB article. When I embed the iframe the src gets removed after saving the update.

rajanarajesh
Mega Explorer

Hi @Chuck_P  @austin973347979 

 

Please use the below image as reference, and add the HTML Sanitize attribute as false to the Article body dictionary entry. This will not remove the embed code further. I tested and it is working as expected.

 

Sanitize false.png

Version history
Last update:
‎06-14-2018 06:31 AM
Updated by: