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 custom price level on line items
I am having trouble specifying a custom price level on line items when adding a sales order via SuiteTalk.
I have the following code:
so.itemList.item[0].price = new RecordRef();
so.itemList.item[0].price.type = RecordType.priceLevel;
so.itemList.item[0].price.typeSpecified = true;
so.itemList.item[0].price.internalId = "-1";
based upon a results.xml snippit of:
<tranSales: price internalId="-1" xmlns: platformCore="urn:core_2011_2.platform.webservices.netsuite.com">
<platformCore:name>&nbsp;</platformCore:name>
</tranSales: price>
With this code I get the following User Error:
<platformCore:code>USER_ERROR</platformCore:code>