- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2024 08:33 AM
Hi,
I have a widget. I created a button which will download the attachment from a attachment type field on form. After clicking the button it is going to some diffent link rather that what I want.
Its going to :
but it should go:
https://XYZ.service-now.com/nav_to.do?uri=sys_attachment.do?sys_id=b3125b00000000000821ec4bcbf4
HTML:
<a href = "{{data.addToCalender}}+{{::item.u_zoom_link}}" target="_blank"> <span class="fa fa-calendar-plus-o"></span> Add to calendar</a>
server side:
data.addToCalender = gs.getProperty("glide.servlet.uri")+"nav_to.do?uri=sys_attachment.do?sys_id=";
Due to this it downloading a empty file with the same name. KIndly help.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2024 09:44 AM
Use this:
HTML:
<a href = "{{data.addToCalender}}+{{::item.u_zoom_link}}" target="_blank"> <span class="fa fa-calendar-plus-o"></span> Add to calendar</a>
server side:
data.addToCalender = gs.getProperty("glide.servlet.uri")+"sys_attachment.do?sys_id=";

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2024 09:44 AM
Use this:
HTML:
<a href = "{{data.addToCalender}}+{{::item.u_zoom_link}}" target="_blank"> <span class="fa fa-calendar-plus-o"></span> Add to calendar</a>
server side:
data.addToCalender = gs.getProperty("glide.servlet.uri")+"sys_attachment.do?sys_id=";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2024 11:59 PM - edited 08-20-2024 12:17 AM
Thanks. Working now.