Zone

Zone records specify areas in your warehouse where you putaway, store, or pick items. In NetSuite WMS, you can associate zones with warehouse locations.

The zone record is available when the Warehouse Management feature is enabled. For help working with this record, see Creating Zones.

The internal ID for this record is zone.

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 zone record is scriptable in both client and server SuiteScript.

Supported Functions

The zone record is fully scriptable – it can be created, copied, updated, deleted, and searched using SuiteScript.

Code Samples

            require(["N/record"], function (record) {
    function createZone() {
        var locationId = 1;

        var zone = record.create({type: record.Type.ZONE, isDynamic: true});
        zone.setValue({fieldId: "name", value: "Freezers"});
        zone.setValue({fieldId: "description", value: "Temperature less then 0°C"});
        zone.setValue({fieldId: "location", value: locationId});

        setTranslationValues(zone, {languageName: "Czech", name: "Mrazáky", description: "Teplota pod 0°C"});

        zone.save();
    }

    function editZone() {
        var zoneId = 17;
        var locationId = 2;

        var zone = record.load({type: record.Type.ZONE, id: zoneId, isDynamic: true});
        zone.setValue({fieldId: "name", value: "Coolers"});
        zone.setValue({fieldId: "description", value: "Temperature between 0°C and 6°C"});
        zone.setValue({fieldId: "location", value: locationId});

        setTranslationValues(zone, {languageName: "Czech", name: "Lednice", description: "Teplota mezi 0°C a 6°C"});

        zone.save();
    }

    function setTranslationValues(zone, translation) {
        var lineNumber = zone.findSublistLineWithValue({sublistId: "translations", fieldId: "language", value: translation.languageName});
        zone.selectLine({sublistId: "translations", line: lineNumber});
        zone.setCurrentSublistValue({sublistId: "translations", fieldId: "name", value: translation.name});
        zone.setCurrentSublistValue({sublistId: "translations", fieldId: "description", value: translation.description});
        zone.commitLine({sublistId: "translations"});
    }

    createZone();
    // editZone();
}); 

          

Related Topics

Warehouse Management
Creating Bin Locations or Carts
Defining Pick Strategies
SuiteCloud Supported Records
Lists

General Notices