(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template, /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action, /* Optional GlideRecord */ event) { if (current.technical_review == 'Yes'); { a = current.technology_leadership_approver.email.toString(); b = current.technology_leadership_approver.getDisplayValue(); email.addAddress('cc', a, b); } })(current, template, email, email_action, event);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter