Inventory Status Change

The inventory status change record is available in NetSuite and NetSuite OneWorld accounts when the Inventory Status feature is enabled. An administrator can enable this feature at Setup > Company > Enable Features, on the Items & Inventory subtab.

For help working with this record in the UI, see Inventory Status.

The internal ID for the inventory status change record is inventorystatuschange. The internal ID for its Items sublist is inventory.

See the SuiteScript Records Browser for all internal IDs associated with this record.

Note:

For information about using the SuiteScript Records Browser, see Working with the SuiteScript Records Browser in the NetSuite Help Center.

For information about scripting with this record in SuiteScript, see the following help topics:

Supported Script Types

The inventory status change record is scriptable in both client and server SuiteScript.

Supported Functions

The inventory status change record can be created, read, edited, copied, deleted, searched, and transformed using SuiteScript.

Usage Notes

In the UI, you cannot select the same value in the Previous State and Revised State fields. Using SuiteScript, there is no validation if you set the same value for previousstatus and revisedstatus.

Code Samples

The following sample shows how to create an inventory status change record to move 10 good widgets at your US location to the inspection status.

          var invStatus = record.create({

    type: record.Type.INVENTORY_STATUS_CHANGE,

    isDynamic: true

});

invStatus.setText({

    fieldId: 'location',

    text: 'US Only Location'

});

invStatus.setText({

    fieldId: 'previousstatus',

    text: 'Good'

});

invStatus.setText({

    fieldId: 'revisedstatus',

    text: 'Inspection'

});

invStatus.selectNewLine({

    sublistId: 'inventory'

});

invStatus.setCurrentSublistText({

    sublistId: 'inventory',

    fieldId: 'item',

    text: 'Widget'

});

invStatus.setCurrentSublistValue({

    sublistId: 'inventory',

    fieldId: 'quantity',

    value: 10

});

invStatus.commitLine({

    sublistId: 'inventory'

});

var recordId = invStatus.save(); 

        

Related Topics

General Notices