- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2016 07:25 AM
Running Geneva version and we are fairly new to ServiceNow. We have a Service Request Catalog item for department moves. Along with the form users fill out, we need an Excel spreadsheet to be completed. Is there any way to somehow embed this attachment in the form and make it part of the form all the time, or have a link the user can click to get to the form? If this is possible, we are also trying to figure out a way to keep the user from submitting the request if the spreadsheet is not attached.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2016 07:58 AM
We handle making attachments available using this method:
- Attach file to the appropriate record
- Example: Document linked from a Catalog Item is attached the the item record (sc_cat_item)
- Save record
- Use the "view" link to open the attachment
- Obtain the attachment SysID from the end of the URL
- Create a URL link substituting this SysID:
- In a Rich Text field using this format:
sys_attachment.do?sys_id=43f614050a0a0b846fc33c7021c00455&view=true- Full HTML:
<a href="https://<your_instance>.service-now.com/sys_attachment.do?sys_id=43f614050a0a0b846fc33c7021c00455&view=true" target="_blank">My Link</a>
- Full HTML:
- Hyperlink in external document (include the instance):
https://<your_instance>.service-now.com/sys_attachment.do?sys_id=43f614050a0a0b846fc33c7021c00455&view=true
- In a Rich Text field using this format:
You can place the link in the item Description for the user to download, fill-out, save locally and attach before submission.
To require an attachment before submission see this onSubmit Client Script:
function onSubmit() {
var producer_id = gel('sysparm_item_guid').value;
var gr = new GlideRecord('sys_attachment');
gr.addQuery('table_name', 'incident');
gr.addQuery('table_sys_id', producer_id);
gr.query();
if (!gr.next()) {
alert("Message instruction the user to fill-out the attachment");
return false;
}
}
Please mark as Answers if this meets your requirements.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2019 07:26 AM
I needed an attachment as reference to use during access to a Service Catalog item. Using paper clip to upload attachments in item design does not display such reference once the form is in use. So I used Macro with Label to display the reference documents.