Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
SetRedirectURL Passing Parameters?
I’m trying to pass a parameter on the SetRedirectURL function in a User Event without successs.
Any guesses to what I’m doing wrong?
var custparam_quoteid = new Array();
custparam_quoteid[0] = nlapiGetRecordId();
recordCreated = nlapiCreateRecord('customrecord4');
recordCreated.setFieldValue('custrecord6', nlapiGetFieldValue('entity')); //Company
recordCreated.setFieldValue('custrecord7', nlapiGetLineItemValue('item', 'item', 1)); //Loaner Item
recordCreated.setFieldValue('custrecord13', nlapiGetLineItemValue('item', 'serialnumbers', 1)); //Loaner Serials
tranum = nlapiSubmitRecord(recordCreated, true);
nlapiSetRedirectURL('RECORD', 'customrecord4', tranum, true, custparam_quoteid);
Thanks as always;
Frank