catalog item download a file from catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2016 08:21 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2016 08:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2016 08:51 AM
I used that thread and wrote a macro and include it to my form. But, problem is that when I click the link it send me to login page of the service now instance. I want download the file (excel) into my hard drive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2016 09:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2016 10:07 AM
Hi Mihir,
I used correct sys_id of the file (this file is attached to the catalog item) and used following macro. It is still redirect to the login page of the instance (https://xxxxdev.service-now.com/)
-------------------
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<p> <b><font color="red">Please download Form and Attach Updated Form, </font> <a href="https://xxxxdev.service-now.com/sys_attachment.do?sys_id=b84b99ab6f19ae00cfd1f37cbb3ee47d" target ="_blank"><font color="blue">Click Here</font></a><font color="red"> to download form.</font> </b></p>
</j:jelly>
-------------------