Email Script template.print issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 03:04 AM
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);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 03:25 AM
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 🙂
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 03:50 AM
I am also facing issue with template.print, your issue resolved?