service portal

sushma9
Tera Contributor

Hi Team,

  I have a requirement  to  show the attachments  which is present in the KB article    in  the service portal with a link and when the user clicks 0n  the links   the attachments presents in the Kb article should be downloaded .

 

Ex :

suppose In this Kb00124576 if i have two attachments and i need a link to " click here to download " and when the user clicked on the link in the portal  then the documents presents in the Kb should download.

 

sushma9_0-1701709146779.png

 

 

2 REPLIES 2

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @sushma9 ,

You can write the script and glide record the sys_attachment table and check with the table name and sys_id of the knowledge article you will get all the attachments.

once you get attachments associated with the knowledge article you can pass the parameter to HTML in the portal. you can now use the anchor tag along with the href tag to populate the link of the attachment.

Thank you,

Omkar

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.

@Omkar Kumbhar 

I am able to get the sys id of the attachments  associated  with the  KB Article and i am populating the sys id of the article in the HTML filed but i want the link  to be populated   . Can you please Provide me the HTML script to populate that  sys id of the article as URL in the filed .In the sys id filed i need a  url link like "Click here to download " .

sushma9_0-1701962039819.png