Email Notification: variable with instance email address and id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â01-21-2020 07:54 AM
Hi,
I am creating a notification email. I want to use the instance email address as the mailto recipient and the instance id in the email body. Instead of hard coding, on a per instance basis, does anyone know of variables I can use, in my email notification Message HTML, such that they will resolve to the instance email address and instance id?
Thanks,Matt
PS If you could point me to the location of ${NOTIF_UNSUB} I think I might be able to work it out..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â01-21-2020 07:56 AM
You could call a mail script that specifically prints out the instance email address. The code for the mailscript would be:
template.print(gs.getProperty('instance_name') + '@service-now.com');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â01-21-2020 07:58 AM
thnx will have to test tomorrow now...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â01-21-2020 08:01 AM
Let me know how this works out for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
â01-23-2020 07:59 AM
AFAICS the instance email address is the value of the SMTP account [sys_email_account].[From]. I was wondering if this will always equal
gs.getProperty('instance_name') + '@service-now.com')