catalog item download a file from catalog item

dilini
Giga Expert

Hi,

I need an user/customer to download file into their hard drive from a cat item form when the user click download link. I know the sys_id of the file saved in sys_attached table.

Thank you!

8 REPLIES 8

jshafton21
Kilo Guru

You can use a Macro variable to do this


How can I do this please help


That's odd not sure why it would prompt you to login again looking at the macro you had is there an extra space after the href="?



Here's my macro for something similar



<?xml version="1.0" encoding="utf-8" ?>


<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">


<a href='https://XXXX.service-now.com/sys_attachment.do?sys_id=11f377df13621240d815fee32244b002' target='_blank'>Click here to download the Suite/Cube Map</a> </j:jelly>


I used following macro. But, problem is that it direct me to login to the service now instance and not download file into my hard drive.



<?xml version="1.0" encoding="utf-8" ?>


<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">


<html>


<head>


<title> </title>


</head>


<body>


<p> <b><font color="red">If you have more than 1 Phone Requests, please click below link to download the "VoIP CISCO/Broadsoft Work Order Summary form" and then fill it and attach the form using the "Add Attachment" button</font> <a href=" https://xxxxdev.service-now.com/ sys_attachment.do?sys_id=68de0fd96fcd6200cfd1f37cb67b3ee452" target ="_blank"><font color="blue"> VoIP CISCO/Broadsoft Work Order Summary form</font></a><font color="red"> to download form.</font> </b></p>      


  </body>


</html>


</j:jelly>