zackb
var recID = scriptContext.newRecord.id; var rec = record.load({ type: record.Type.SALES_ORDER, id: recID, isDynamic: true, });