Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 11:47 PM
For that you need to make use of below line of code :
template.print("<br />")
So updated script will look like below:
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
// Add your code here
var getArray = event.parm1.toString();
var splitStr = getArray.split(',');
for(var i=0;i<splitStr.length;i++){
template.print('Value is '+ splitStr[i]);
template.print("<br />");
}
})(current, template, email, email_action, event);
Regards,
Shloke
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke