You can create document file from servicenow and by script

var gr=new GlideRecord('sc_req_item');
var gsa = new GlideSysAttachment(); 
var attachmentId = gsa.write(gr, "TestSample.doc", 'text/plain', <input html code>);

Then how to generate html code you can folow our another code:

One response

Leave a Reply

Your email address will not be published. Required fields are marked *