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
Adding Web Site Category to a new inventory item
We are trying to automatically add a web site category to each new item created. We have a client script that sets the "website" value but it will not set the "category". It just stays blank and there is no error logged. How do you set the "Category" for the new sublist line?
Here is the code we have
curRec.selectNewLine({sublistId: 'sitecategory'});
//THIS WORKS
curRec.setCurrentSublistText({
sublistId: 'sitecategory',
fieldId: 'website',
text: 'SuiteCommerce InStore Website'
});
//THIS DOES NOT WORK
curRec.setCurrentSublistText({
sublistId: 'sitecategory',
fieldId: 'category',
text: 'Home'
});
Thanks!
Karen