MoCheeks
12/23/2021, 1:20 PMlet newINV = record.transform({
fromType: record.Type.SALES_ORDER,
fromId: newSOId,
toType: record.Type.INVOICE,
isDynamic: true,
});
let newINVId = newINV.save(); //Errors on this line, but the invoice is attached to the Sales Order
`log.debug('Invoice', Invoice Id = ${newINVId}
);`
return newINVId;
Any thoughts?Webber
12/23/2021, 1:34 PMMoCheeks
12/23/2021, 4:18 PM