title: How to redirect to Custom Record in Create mode in SuiteScript 2.0?
body: <p>I'm trying to redirect to a Custom Record from a custom Button from Sales Order. Button function is given below, I need to get <strong>rectype(496)</strong> parameter by passing the <strong>Custom record Id (custrecord_gotorecord)</strong> or any other way to do the same?</p>
  
  <pre><code>function openCustomRecordCreate() { 
              var currRec = currentRecord.get();
              var currentRecordId = currRec.getValue({
                  fieldId: "id"
              });
              window.open("/app/common/custom/custrecordentry.nl?rectype=496&amp;soID=" + currentRecordId + "&amp;end=true", '_self');
          }
  </code></pre>