How do you get the watermark of the email you're sending?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2014 08:28 AM
How do I get the watermark of the email notification I'm sending out? I need to create a manual "approval" email notification with a manually-built mailto:link. The notification, when replied to, acts as a new email instead of an approval notification. I'm aassuming it's because the mailto link I created doesn't add the watermark to the body of the notification.
Since I'm not using the OOB approval link that adds it for me, how do I get the watermark so I can add it to my link?
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2014 09:01 AM
Just to understand the scenario, you have created a notification in Service Now, and in the body of the notification you've added an a tag with a mailto address that the user can click to reply to the email?
If I'm correct, this could be difficult to implement, as the new email won't have the watermark to relate it back to the record. What you can do is use a mail script in your notification to find the watermark for your record and add into a "body" call with in the mail to hyperlink:
<mail_script>
var gr = new GlideRecord('sys_watermark');
gr.addQuery('source_id', current.sys_id);
gr.query();
while(gr.next()) {
template.print("<a href="instance@service-now.com?body=Ref:" + gr.number + ">Hyperlink text</a>");
}
<mail_script>
Simply add this into the body field of your notification, in the position that your link should appear. Have a go and let me know if it works. One problem that you may face here is uneducated users deleting the watermark text in the new mail, because they think it's gobbledygook...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2016 07:43 AM
Since I ended up here when searching, but found this answer elsewhere, here's for all the other like me:
How to use the watermark in a notification