title: Using N/record in Suitelet in Suitscript 2.0
body: <p>I'm trying to load a record using the n/record module in my Suitelet, but I'm getting the following error:</p>
  
  <p><code>org.mozilla.javascript.EcmaError: TypeError: Cannot read property "SALES_ORDER" from undefined</code></p>
  
  <pre><code> * @NApiVersion 2.x
   * @NScriptType Suitelet
   */
  
  define(['./form', 'N/record'],
      function(form, record) {
  
          function onRequest(context) {
  
              if(context.request.method === 'GET'){
                  var ratingForm = form.build(context);
  
  
                  var customRec = record.load({
                      type: record.TYPE.SALES_ORDER,
                      id: 18
                  });
  
  </code></pre>
  
  <p>This inside a form, and I'd like to load a record, and pre-populate any fields I can with the existing SALES_ORDER record.</p>
  
  <p>Maybe I need to go about this in a different way?</p>