
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2016 11:42 AM
I found this: Dynamic subject in an Email notification
But no answer.
I'm trying to call a mail script because I need a dynamic subject line:
However, when the email comes in, I get this as my subject line: ${mail_script:dynamic_subject}
Is a dynamic subject line possible?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2016 11:44 AM
Hi David,
Call the dynamic_subject script from within the message body.
It should contain a line like this:
email.setSubject("This is the new subject line");
Scripting for Email Notifications - ServiceNow Wiki
Email Notifications - ServiceNow Wiki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2016 03:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2016 09:32 AM
so the email.subject has to be in the body of the email notification right ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2016 11:09 AM
The subject is the subject. The body is the body.