title: How to get newly created sales order internal id in suitescript 2.0?
body: <p>I'm writing a suitescript to send order details to a customer email address.</p>
  
  <p>Is it possible to get the sales order id through scriptContext or similar method?</p>
  
  <p>My function is run on Sales Order After Submit.</p>
  
  <pre><code>function afterSubmit(scriptContext){
  
       soid = scriptContext.soid; //&lt;--trying to get the sales order id
  
  }
  </code></pre>