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
SuiteScript - You still need to reconfigure the inventory detail record after changing the quantity
Hello~
I'm working on automating the creation of Inventory Adjustments so that we can expense items from our item receipts with ease. However, I've run into a problem that I'm struggling to wrap my head around.
{"type":"error.SuiteScriptError","name":"USER_ERROR","message":"You still need to reconfigure the inventory detail record after changing the quantity.","id":"","stack":["anonymous(N/serverRecordService)","onRequest(/SuiteScripts/ExpenseButtonFunction.js:245)"],"
When I run the script, I get this message as it tries to create the item line. It would suggest that the quantity on the item line is being changed after I've added the inventory details of quantity and status, but that shouldn't be happening? I put the inventory detail quantity last in the process just to be sure but to no avail.