Email Client Template - Add ALL previous comments/activities to responses/replies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 11:44 AM
Hello we are trying to attach a list of all comments on an incident to a reply from an incident using the Reply/Email button.
I've already modified the Email Client Template, and I can get the LAST comment attached but we need a list of all the activity/comments added to the email response.
I will mark helpful for whoever helps out getting closer to the answers.
- Labels:
-
Notifications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 11:58 AM
You should be able to do so by creating an email script, similar to this example:
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
template.print(current.comments.getJournalEntry(-1));
})(current, template, email, email_action, event);
Then on your template add the call to the email script, similar to this (but edit to call your new script):
${mail_script:insert_original_email_message}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 12:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2024 01:32 PM
Were you able to figure this out? I want to add "email sent" to the email client. We add "email received" as comments.