- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2017 09:38 AM
Hello All!
I'm trying to make a link on a record producer that would open an attachment in the sys_attachments table. I got this working but it opens a completely new tab to service now. Is there a way to just have it open in the same window?
Thanks!!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 05:50 AM
I ended up adding the attachment to KB and then referencing the sys ID. Thanks for the help!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2017 09:41 AM
Add "nav_to.do?uri=" after your base instance url like this
Here is an example
https://<baseURL>/nav_to.do?uri=<table name>.do?sys_id=-1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2017 09:50 AM
Can you post what you did?
This may just be a browser behavior, and not related to service-now or your code. It might depend on the type of attachment also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2017 10:24 AM
So my code is below using what Abhinary gave me. When I do this it refreshes the page and then has the download prompt.
<a href="https://myinstancekdev.service-now.com/nav_to.do?uri=sys_attachment.do?sys_id=a62d8d580fd4ba00c9fa59..." >Example Report</a>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 05:50 AM
I ended up adding the attachment to KB and then referencing the sys ID. Thanks for the help!