Create from Script
Include the code below in any area where server-side scripting is allowed in order to generate & attach a PDF file.
var pdfHelper = new x_yala_pdf.PDFGenerator();
var resultData = pdfHelper.generateFromHTMLWithSourceAndAttach(pdfTemplate, fileName, sourceRecord, attachRecord);
pdfTemplate: GlideRecord of the HTML to PDF Merge Template to use
fileName: File name of the resulting attachment
sourceRecord: Source GlideRecord from which to derive any dynamic data in the PDF
attachRecord: Target GlideRecord where the PDF file should be attached
Last updated