Open kb attachment

kmickael
Tera Guru

hi , 

On service portal , i would like to know if it's possible to open (in a broweser or other...) directly an attachment when i clic on an knowledge article ? 

thank you for your help 

find_real_file.png

18 REPLIES 18

I notice the value is True  vs true for one of your properties.

kmickael
Tera Guru
 
Hello, 
 
I opened a ticket on hi because I can not have the same behavior.

Description issue:
When I click on an article of knowledge the attached document must open directly.
it works in backend but not on the portal
 
 
the support tells me that it is not possible to have the same behavior with the OOTB

do you have a solution because when I look at the example of Rajesh Kannan Gurusamy it seems to work as I wish.
 
thank you

Did you get an answer on this?  I have the same issue.

Hi, 

here is the response of the support

The following widget 'KB Article' is redirecting the user to kb_view page after clicking the knowledge article in service portal.
https://klesianp.service-now.com/nav_to.do?uri=sp_widget.do?sys_id=e7ef8eb847101200ba13a5554ee49010

This widget is using the following hyperlink:
=======================
<a ng-href="?id=kb_article&sys_id={{doc.sys_id}}">{{doc.short_description}}</a>
=======================
Hence, the user is redirected to kb_article page directly instead of being shown a preview.

In Platform UI, accessing the knowledge article through UI Page ($knowledge.do), a function 'openArticleAttachment' is called and the attachment is opened directly.
openArticleAttachment(article.meta.external_link || article.link, article.title, article.meta.external_link);

This Service Portal behavior of opening a knowledge article in kb_article page is something that is working as per design.

You may also want to consider posting this issue to our community where professionals, such as yourself, gather to exchange ideas and solutions. Here are a few links that will take you to our community:
http://community.servicenow.com (home of our user forums and a number of technical blogs)