var newType = <NetSuite ID of record type>; // making new record codevar newId = newRecord.save(); // performing the procedures// Requires the N/url modulevar output = url.resolveRecord({ recordType: newType, recordId: newId, isEditMode: true});window.location.replace(output);