syed_faheem
ServiceNow Employee

I dont think you can use <mail_script> in document template.



However you can look into developing some script in script include which could return the list. Have a look at below code in parseBody method.



parsedBody = parsedBody.replace(/\$\{date\}/gi, date);

parsedBody = parsedBody.replace(/\$\{letterid\}/gi, this.letterid);



you could build a variable similar to this i.e ${attachlinks} and script in parseBody to return the values you want.



Cheers


Syed.