Merchandise Hierarchy Node
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 node provides groupings for items that share similar characteristics. They can either be a point in the hierarchy from which other nodes can be created, or the point in the hierarchy where products are assigned to.
A Merchandise Hierarchy Node record contains details of the position of the node in the hierarchy, and the version or versions in which it is included.
The Merchandise Hierarchy Node 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 merchandisehierarchynode
.
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 Node record can be read, created, updated, deleted, and searched using SuiteScript.
Subtabs
The following subtabs are scriptable for this record:
-
hierarchyversions (Merchandise Hierarchy Versions)
Code Sample
The following sample shows how to create a new Merchandise Hierarchy Node record:
require(['N/record'], function(record) {
var node = record.create({
type: record.Type.MERCHANDISE_HIERARCHY_NODE,
isDynamic: true
});
node.setValue({
fieldId: 'name',
value: 'Node 1'
});
node.setValue({
fieldId: 'description',
value: 'Description of Node 1'
});
var recId = node.save();
});