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
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.