diff --git a/MailScript/getLatestComment.js b/MailScript/getLatestComment.js new file mode 100644 index 0000000..81d008a --- /dev/null +++ b/MailScript/getLatestComment.js @@ -0,0 +1,12 @@ +(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template, + /* Optional EmailOutbound */ + email, /* Optional GlideRecord */ email_action, + /* Optional GlideRecord */ + event) { + + //Fetch latest comment and notify + + var comments = current.comments.getJournalEntry(1); + template.print(comments); + +})(current, template, email, email_action, event);