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.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Creating a new Manufacturing Routing
Hi,
Need some help with a script I am doing. I am trying to do a setup some defaults when a new Manufacturing Routing is created. Having trouble setting the 'manufacturingcosttemplate' and the 'manufacturingworkcenter' fields on the 'routingstep' sublist. Whether I use the internal Id or the text, it just doesn't work. Sample code:
nlapiSelectNewLineItem('routingstep');
nlapiSetCurrentLineItemValue('routingstep', 'operationsequence', q + 1);
nlapiSetCurrentLineItemValue('routingstep', 'manufacturingcosttemplate', cost_template_id);
nlapiSetCurrentLineItemValue('routingstep', 'manufacturingworkcenter', work_centre_id);
nlapiSetCurrentLineItemValue('routingstep', 'operationname', work_centre_name);
nlapiSetCurrentLineItemValue('routingstep', 'runrate', 1);
nlapiSetCurrentLineItemValue('routingstep', 'setuptime', 1);
window.alert('line done');
nlapiCommitLineItem('routingstep');
Line 3 and 4 never work and hence the line does not get committed. I even tried hardcoding the internal ID and the text but none of them work.