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.
Setting Prices via Pricing Matrix API
I am attempting to modify pricing via SuiteScript (a User Event script) - however the setCurrentLineItemMatrixValue function doesn't seem to be working properly.
The code is really a script found in the Help topic on Pricing Sublists, so it is surprising to me that it doesn't just work as is.
Other parts of the script are working just fine, both before and after the call to setCurrentLineItemMatrixValue. I even enclosed that call in a try-catch block of its own, with no error being caught. The code seems to run, but not actually update the matrix values. We need to be able to update pricing via some form other than CSV imports, and I figured that scripting would be the best way, especially since there is the Matrix API designed specifically for this sort of thing - modifying item pricing.