Email script not showing anything in notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 06:02 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 08:15 AM
You need to use template.print("Your message here " + person) to push it to the target object.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 08:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2024 07:00 AM
Hi @Community Alums ,
Changed the script to this
still nothing visible on the notification preview unfortunately

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2024 08:45 PM
@jthomsen Update the script as follows and see if it works.
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
// Add your code here
var person = current.caller_id.last_name + '';
var msg = 'Sehr geehrte(r) Frau/Herr';
template.print(msg + person);
})(current, template, email, email_action, event);