Email script for email subject
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 01:30 AM
Hello,
Can we call email script into email notification subject? Can you please help me with this scenario.
Thank you.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 01:38 AM
Hi
you can find descriptive examples at https://developer.servicenow.com/dev.do#!/learn/courses/rome/app_store_learnv2_automatingapps_rome_a...
The email object provides a method for setting a custom subject: https://developer.servicenow.com/dev.do#!/reference/api/rome/server/no-namespace/c_GlideEmailOutboun...
And you call that email script within the body field of your email notification.
Let me know, if you have any further questions.
Kind regards
Maik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 01:39 AM
Hello Sandy,
Instead calling email script from email notification subject, you can plan to set subject through email script.
e.g below
email.subject = 'My subject
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 02:51 AM
Hello Sulabh,
It means, in email script need to use syntax email.subject and then call it in email notification body via email script syntax??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2022 06:07 AM
That is right...Exactly..
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg