Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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