```function openNewCustomRecord() { log.de...
# suitescript
t
Copy code
function openNewCustomRecord() {
        log.debug('Opening Window');
        window.open(window.location.origin + '/app/common/custom/custrecordentry.nl?rectype=620&whence=');// Needs replaed with non-hardcoded value
    }
h
Hi @Tyler Bobik, You may use
'N/url'
.
Copy code
var t = url.resolveRecord({
    recordType: 'customrecord_id'
});
openNewCustomRecord(t);

function openNewCustomRecord(d) {
        log.debug('Opening Window');
        window.open(d);// Needs replaed with non-hardcoded value
    }
👍 1
t
I'll have to try this! I wasn't sure if I could give params to those client script functions
Got it working! Thank you