I'm writing a suitescript to send order details to a customer email address.
Is it possible to get the sales order id through scriptContext or similar method?
My function is run on Sales Order After Submit.
function afterSubmit(scriptContext){
soid = scriptContext.soid; //<--trying to get the sales order id
}