Help with Email Notification - "undefined" error in the subject
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2022 04:35 AM
Hi ,
I have an email notification built,
Where in the subject it shows this error, "undefined undefined" when I Preview the Notification
Notification,
Script,
I have checked the email script, but could not find any error? HELP?
Thanks,
Vaishnavi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2022 04:53 AM
Hi,
You have applied email template, please check if you are setting subject through email template.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2022 04:55 AM
Hi Anil,
In the Email Template , email script is applied.
I have not built this but the previous resource who was there.
Thanks,
Vaishnavi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2022 05:00 AM
Is the code that is currently commented out being used?
MailTemplate is a custom script include, so can't help with that unless you provide the source code.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2022 10:23 AM
Hi,
I was doing some trail and error to check. Even if I comment that part or not, "undefined undefined" error still exists when I preview the notification.
Thanks,
Vaishnavi