- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2020 07:17 AM
Hi Team,
How can i achieve the below requirement.
When the agent attaches the attachment to ServiceNow, a link to the attachment should get added to work notes.
Any help would be highly appreciated .
Thanks in Advance.
Regards
Deepak Bisht
Solved! Go to Solution.
- Labels:
-
Customer Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2020 02:24 AM
Hi,
then use this but it won't be clickable link unless you give anchor tag
I have not used anchor tag in below code
var rec = new GlideRecord(current.table_name);
rec.get(current.table_sys_id);
var url = 'https://' + gs.getProperty('instance_name') + '.service-now.com/sys_attachment.do?sys_id=' + rec.sys_id;
rec.work_notes = url;
rec.update():
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2020 01:48 AM
Hi Ankur,
Once again thanks.
i have sorted out the problem of redirecting, now its not redirecting to homepage.
++ to point its coming like incident no. link kind off . i need kind of Metadata format.(https://dev****************/*****)
How can i make it?
any input or suggestion
Regards
Deepak Bisht
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2020 01:55 AM
Hi,
please share what have you written in script and what should be the output
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2020 02:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2020 02:24 AM
Hi,
then use this but it won't be clickable link unless you give anchor tag
I have not used anchor tag in below code
var rec = new GlideRecord(current.table_name);
rec.get(current.table_sys_id);
var url = 'https://' + gs.getProperty('instance_name') + '.service-now.com/sys_attachment.do?sys_id=' + rec.sys_id;
rec.work_notes = url;
rec.update():
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2020 11:21 AM
Hi Deepak - You may find below thread helpful.
- Pradeep Sharma