Email Script template.print issue

Gayathri5
Tera Guru

Hi All,

 

I have written notification email script which is not working. Can any one help me where i did mistake?

In logs i am getting value but in template.print these values are blank, please help me

//workflow run script
var catman =current.variables.manager.getDisplayValue();
gs.eventQueue('te.notify.manager', tsk, num, catman);
tsk.update();

//email script

var count = event.parm1;

var man = event.parm2;

var val = man.getDisplayValue();


template.print("manager:"+ man);// blank value cmng


gs.log("Manager:"+man);//values i am getting in logs
gs.log("Count:"+count);


template.print("Count:"+count);

6 REPLIES 6

In event.parm2, are you passing the display name of sys_id, if sys_id, you need to GlideRecord the user table and then fetch the display name.

 

Feel free to mark correct if it resolves your issue 🙂

Best Regards
Aman Kumar

SAI BHAGYALAKSH
Tera Contributor

@Mohit_Gupta 

I am also facing issue with template.print, your issue resolved?