Help with email notification link VRT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
I am wanting our email notifications for vendor risk assessment tasks to provide the link to take the user to the Vendor Management Workspace. I've tried several different ways already provided in ITSM forums, but it is not working. I cannot get a script to work, so I tried using the HTML message. The part that does not work is the link to the VRT.
Here is the "What it will contain" that I have set:
This is the link I have set for the link in the message HTML:
http://mydev.service-now.com/now/vendor_management/sn_vdr_risk_asmt_task/${sys_id}
When I preview the notification, I see:
I then create a new task on the external assessment (aka VRA). Then I go to the System Mailboxes>Outbound>Sent and preview the email notification sent, it looks correct:
However, when I click the link in the email, it takes be to a Page not found error:
Does anyone know what I have incorrect in my link? Or am I missing something when testing my work? Shouldn't I be able to do this for vendor risk tasks (VRT)? Thanks for any help or advice.
Cheryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
the link can be added as this
Output: when I click that link it shows the correct URL below
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
In this video, show how to insert a download document In service catalog
but the way to insert a link is the same for your process
Kindly check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday - last edited Thursday
Navigate to System Notification > Email > Notifications.
Open the desired notification record.
Go to the What it will contain tab.
In the Message HTML field, type <strong>Click here to view record:</strong> <a href={URI_REF}</a>. You can customize the text "Click here to view record" and the display text "URI_REF" as needed.
Save the notification.
Using an email script (For more complex links)
For more dynamic link creation, you can use an email script:
Create a new email script :
Navigate to System Notification > Email > Scripts.
Click New.
Give the script a descriptive name (e.g., "IncidentLinkScript").
In the script editor, add code to create the link, for example:
template.print('<a href="' + gs.getProperty('glide.servlet.uri') + '/incident.do?sys_id=' + current.sys_id + '">Click here to open incident</a>');
In your notification's Message HTML field, reference the script:
Type <strong>Incident Number:</strong> ${mail_script:IncidentLinkScript}. Replace "IncidentLinkScript" with the name of your script.
Save the notification.
Links to refer-
https://www.servicenow.com/community/developer-forum/clickable-link-on-email-notification/m-p/1875623
https://www.servicenow.com/community/incident-management-sow-forum/link-to-workspace-records/m-p/2839401
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0854161
https://www.servicenow.com/community/developer-forum/how-to-make-a-clickable-link-which-leads-to-the-change-record/m-p/2613844
https://www.servicenow.com/community/developer-forum/is-there-a-way-to-include-the-ritm-and-sctask-links-in-the-body/m-p/2527443
https://www.servicenow.com/community/incident-management-forum/how-to-make-incident-number-hyper-link-in-notification-message/m-p/2661870
https://www.servicenow.com/community/now-platform-forum/how-do-i-add-a-cc-in-an-email-notification-please-help/m-p/1190307
[ Architect | Certified Professional]
Was this response helpful? If so, please mark it as ✅ Helpful and ✅ Accept as Solution to help others find answers.