razer456
07/30/2021, 1:03 PMvar xml = file.load({id:'5789'});
var myFile = render.create();
myFile.templateContent = xml.getContents();
myFile.addRecord(
"record",
record.load({
type: record.Type.SALES_ORDER,
id: recId,
})
);
var invoicePdf = myFile.renderAsPdf();
can anybody walk me through whats happening.. from .getcontents i am lostCD
07/30/2021, 1:06 PMmyFile.addRecord(
"record",
record.load({
type: record.Type.SALES_ORDER,
id: recId,
})
);
Is the same as:
var myrecord = record.load({
type: record.Type.SALES_ORDER,
id: recId,
});
myFile.addRecord(
"record",
myrecord );
if that helps?Webber
07/30/2021, 1:08 PM