Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Creating new items with Unit Types
This is support case 606631
In the code below, I am creating a new item.
I send the cost, price, weight information where the purchase unit is 1 and the sales unit is 6, the cost, price and weight are all multiplied by 6.
However, if I run the same job again, there is no multiplication. Should I set the units in one call and then follow it up with cost, price and weight?
Dim currentItem As InventoryItem = New InventoryItem()
currentItem.cost = Row.ProductCost
Dim pm As PricingMatrix = New PricingMatrix()
pm.pricing = New Pricing(1) {}
pm.pricing(0) = New Pricing()
pm.pricing(0).priceLevel = New RecordRef()
pm.pricing(0).priceLevel.internalId = "1"
0