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.
Help Setting Price Level Values
Hi all,
My company has multiple product lines with various pricing structures that requires us to have a long list of Price Levels on our items in NetSuite. We had a 3rd party write a script that updates some of these price levels prior to me being hired. This script sets the pricing using the function item.setLineItemMatrixValue() (See snippet of Screen Shot below):
[ATTACH=CONFIG]n347539[/ATTACH] [ATTACH=CONFIG]n347609[/ATTACH]if(item!=null){
nlapiLogExecution('DEBUG', 'UpdatePricing',
'Updating Price Level for item id: ' + updateableItem.getId());
item.setLineItemMatrixValue('price1', 'price', 40, 1, DISCOUNT4060);
item.setLineItemMatrixValue('price1', 'price', 41, 1, DISCOUNT4555);
item.setLineItemMatrixValue('price1', 'price', 42, 1, DISCOUNT5050);