Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Serverscript for web leads
I have a serverscript deployed on lead records to set the Pricelevel to a particular value for new leads which come from the website. I don't get any errors but the pricelevel doesn't get set either!! Am I doing something wrong??
My script:
function beforeSaveCustomer(type)
{
if (type.toLowerCase() == 'create')
{
var newRecord = nlapiGetNewRecord();
newRecord.setFieldValue('pricelevel', 2);
}
}
Please help!!!
Thanks ... Srilatha
0