Published on February 10, 2025.
To get pricing information for a given item, you can query the Pricing table.
For example:
SELECT BUILTIN.DF( Pricing.PriceLevel ) AS PriceLevelName, Pricing.PriceQty, Pricing.UnitPrice FROM Pricing WHERE ( Pricing.Item = 1223 ) ORDER BY PriceLevelName, Pricing.PriceQty
That query will return all price levels for which the item has a set price. It does not include price levels for which the item doesn't have a price specified.
If you'd like the result to include information for all price levels, you can restructure the query so that it is based on the PriceLevel table, with a LEFT OUTER JOIN on the Pricing table.
For example:
SELECT PriceLevel.Name, Pricing.PriceQty, Pricing.UnitPrice FROM PriceLevel LEFT OUTER JOIN Pricing ON ( Pricing.PriceLevel = PriceLevel.ID ) AND ( Pricing.Item = 1223 ) WHERE ( PriceLevel.IsInactive = 'F' ) ORDER BY PriceLevel.Name, Pricing.PriceQty
And finally, if you'd like to see an item's price level history, you can query the InvtItemPriceHistory table.
For example:
SELECT BUILTIN.DF( PriceType ) AS PriceType, Version, Quantity, Price, Discount FROM InvtItemPriceHistory WHERE ( Item = 1223 ) ORDER BY PriceType, Quantity, Version
As always, I hope you find the queries that I've shared in this post to be helpful.
Hello, I'm Tim Dietrich. I develop custom software for businesses that are running on NetSuite, including mobile apps, Web portals, Web APIs, and more.
I'm the developer of several popular NetSuite open source solutions, including the SuiteQL Query Tool, SuiteAPI, and more.
I founded SuiteStep, a NetSuite development studio, to provide custom software and AI solutions - and continue pushing the boundaries of what's possible on the NetSuite platform.
Copyright © 2025 Tim Dietrich.