Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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