Email script not showing anything in notification

jthomsen
Tera Contributor

jthomsen_0-1712149278413.png

I created this script to greet the user at the start of every notification, but when I add it to any notification nothing shows up in the preview of the noti

11 REPLIES 11

@Sandeep Rajput 

jthomsen_0-1713434206843.png

I changed the script to this. No it just says undefined when I use it.

Vishwa Pandya19
Mega Sage

Hello,

 

Your code should be as below:

 

var person = current.caller_id.last_name.toString();

template.print('Sehr geehrte(r) Frau/Herr ' +person);

 

If my answer helped you in any way please mark it as helpful or correct.