Bibek Shrestha
07/16/2021, 5:36 PMconst renderer = render.create();
renderer.addRecord(
"record",
record.load({
type: recType,
id: recId,
})
);
renderer.setTemplateByScriptId("custtmpl _pi_pdf_template");
const pdfFile = renderer.renderAsPdf();
But the script fails on the last line with the error MISSING_PDF_PARAMETERS
What am I missing here?amy
07/16/2021, 6:28 PMBibek Shrestha
07/16/2021, 6:32 PMamy
07/16/2021, 7:11 PM