- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2017 05:17 PM
Hi,
I was hoping to create a catch-all notification for emails from other systems. Depending on the source, I was hoping the notification 'From' and 'Reply to' could be dynamic based on the source (you would be able to dot-walk to it).
However:
Does anyone know of a workaround to this? I was hoping to avoid creating a different notification for every source.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2017 06:41 PM
I managed to sort this out, by using a notification script.
I created an email script containing this:
Name: u_commsource_from
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
email.setFrom(current.u_communication_source.u_newfrom);
email.setReplyTo(current.u_communication_source.u_newfrom);
})(current, template, email, email_action, event);
And simply put this in the Message field of the Notification:
${mail_script:u_commsource_from}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2017 06:41 PM
I managed to sort this out, by using a notification script.
I created an email script containing this:
Name: u_commsource_from
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
email.setFrom(current.u_communication_source.u_newfrom);
email.setReplyTo(current.u_communication_source.u_newfrom);
})(current, template, email, email_action, event);
And simply put this in the Message field of the Notification:
${mail_script:u_commsource_from}