How to Provide an Excel Template Download in Service Catalog (Same Window)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi Everyone,
I need to provide an Excel template for end users to download from a Service Catalog item.
I would like to display a catalog variable labeled “Download the Excel Template”, and when users click it, the file should download in the same window (not open a new tab).
Could you please advise:
Which type of catalog variable should I use?
What is the best way to attach and reference the Excel file?
How can I configure it so the download works smoothly in the same window?
Thank you in advance for your guidance!
__________________________________
I tried using variable of type URL / Rich text label but could not achieve the above requirement.
Somewhere i ready variable of type Macro -- but i am unable to see variable of type Macro
_______________________________________________________________________
Requesting help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Couple of approaches
1) Add file to your catalog item, use Rich Text Label variable and add the link to that sys_attachment record
search in sys_attachment and grab that record sysId
In variable click and add link and add that sysId by forming URL
Output:
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago - last edited 3 hours ago
You can achieve it two ways.
1)Easiest one - Add excel file to sys_attachment.
Create an Attachment type variable and configure like given below and link that sys_attachment path
Or
2) Using Macro (Type Custom)
Enable a variable in catalog item to download exce... - ServiceNow Community
