Scenario
A user wants to get a list of active items in NetSuite.
This can be helpful when reviewing item records or creating a simple item report using SuiteQL.
Return active items with the following information:
Information Needed | Description |
|---|
Item Internal ID | The internal ID of the item |
Item Name / Number | The item name or number |
Display Name | The display name of the item |
Inactive Status | Shows whether the item is inactive |
Solution
Use the item table and filter out inactive items.
SELECT
item.id AS item_id,
item.itemid AS item_name,
item.displayname,
item.isinactive
FROM
item
WHERE
item.isinactive = 'F'
This query returns item records that are currently active.
The sample code described herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. Oracle + NetSuite Inc. does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in using their own Web server configurations.
Oracle + NetSuite Inc. does not warrant, guarantee or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the sample code. Oracle + NetSuite Inc. disclaims all warranties, express or implied, and in particular, disclaims all warranties of merchantability, fitness for a particular purpose, and warranties related to the code, or any service or software related thereto.