service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 08:59 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 09:58 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 07:15 AM
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 " .