Help with Email Notification - "undefined" error in the subject

Vaishnavi35
Tera Guru

Hi ,

I have an email notification built,

Where in the subject it shows this error, "undefined undefined" when I Preview the Notification

 

Vaishnavi35_0-1665055652204.png

Notification,

Vaishnavi35_1-1665055963799.png

 

Script,

Vaishnavi35_2-1665056040272.png

I have checked the email script, but could not find any error? HELP?

 

Thanks,

Vaishnavi

 

 

7 REPLIES 7

Anil Lande
Kilo Patron

Hi,

You have applied email template, please check if you are setting subject through email template.

AnilLande_0-1665057194923.png

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Hi Anil,

 

In the Email Template , email script is applied. 

Vaishnavi35_0-1665057333971.png

 

I have not built this but the previous resource who was there.

 

Thanks,

Vaishnavi

 

The SN Nerd
Giga Sage
Giga Sage

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

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