Need to create a drop ship purchase order via scripting in 2.0. I used code based on suiteanswers 7158 - poRec = record.create({
type: record.Type.PURCHASE_ORDER,
isDynamic: true,
defaultValues: {
entity: poVendor,
soid: soId,
dropship: true
}
});
poId = poRec.save();