Email script: CW - Notification: Feedback Task Resolved

PHOTO EMBED

Mon Feb 07 2022 18:06:15 GMT+0000 (Coordinated Universal Time)

Saved by @taracatac #javascript

//Per STRY0188791 - Created from the OOB email script,CW - Notification: Feedback Task Resolved, sys_id = 1fa9b3cb67330300d358bb2d07415a43
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
    /* Optional EmailOutbound */
    email, /* Optional GlideRecord */ email_action,
    /* Optional GlideRecord */
    event) {

    var portal = gs.getProperty("sn_km_portal.glide.knowman.serviceportal.portal_url", 'kb');

    template.print("Hi " + current.opened_by.first_name + ",<br/>");
    template.print("<br/>");
    template.print("The feedback you submitted, ");
    template.print("<a href='" + gs.getProperty('glide.servlet.uri') + portal + "?id=form&table=kb_feedback_task&sys_id=" + current.sys_id + "'>" + current.number + "</a>");
    template.print(" for ");
    template.print("<a href='" + gs.getProperty('glide.servlet.uri') + "kb_knowledge.do?sys_id=" + current.feedback.article + "'>" + current.feedback.article.getDisplayValue() + "</a>" + " was resolved. Please review and accept.");
    template.print("<br/><br/>" + "Close notes: ${current.close_notes}");

})(current, template, email, email_action, event);
content_copyCOPY