Merchandise Hierarchy Level
You can use the Merchandise Hierarchy feature to help you plan, price, report on, and analyze your product inventory by categorizing inventory items in your enterprise.
A merchandise hierarchy level provides a useful way to categorize hierarchy nodes and determine the relationships between inventory items.
The Merchandise Hierarchy Level record is available only when the following features are enabled:
-
Merchandise Hierarchy
-
Custom Segments
For help working with this record in the UI, see Merchandise Hierarchy.
The internal ID for this record is merchandisehierarchylevel
.
See the SuiteScript Records Browser for all internal IDs associated with this record.
For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.
Supported Script Types
Client SuiteScript is not supported for this record. It is scriptable in server SuiteScript only.
Supported Functions
The Merchandise Hierarchy Level record can be read, created, updated, deleted, and searched using SuiteScript.
Code Sample
The following sample shows how to create a new Merchandise Hierarchy Level record:
require(['N/record'], function(record){
var level = record.create({
type: record.Type.MERCHANDISE_HIERARCHY_LEVEL,
isDynamic: true
});
level.setValue({
fieldId: 'name',
value: 'Level 1'
});
level.setValue({
fieldId: 'description',
value: 'Description of Level 1'
});
level.save();
});