Global Inventory Relationship

The internal ID for this record is globalinventoryrelationship.

The Global Inventory Relationship record is available only when the following features are enabled:

Use the Intercompany Cross-Subsidiary Fulfillment feature in your NetSuite OneWorld account to fulfill orders and receive returns across multiple subsidiaries. Use of this feature means that orders are not limited to being fulfilled from locations within the originating sales subsidiary. Instead, you can fulfill a single sales order from locations in multiple subsidiaries.

For help working with this record in the UI, see Intercompany Cross-Subsidiary Fulfillment, Advanced Inventory Management, and Multi-Location Inventory.

See the SuiteScript Records Browser for all internal IDs associated with this record. See Supported Operations for additional details about scriptable elements for this record.

Note:

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

Supported Script Types

The Global Inventory Relationship record is scriptable in both client and server SuiteScript.

Supported Operations

The Global Inventory Relationship record can be created, read, edited, deleted, and searched using SuiteScript. It cannot be copied.

Usage Notes

The following elements of the Global Inventory Relationship record have limitations on scripting:

Fields

The following fields are scriptable for this record:

Subtabs

The following subtabs are scriptable for this record:

Sublists

The following sublists are scriptable for this record:

Additional Notes

Code Sample

The following samples illustrate how to create a Global Inventory Relationship (GIR) record. This code creates two GIR records with the following parameters:

          var US_SUBSIDIARY = 3;
var AU_SUBSIDIARY = 1;

var girRec = record.create({
    type: record.Type.GLOBAL_INVENTORY_RELATIONSHIP,
});
girRec.setValue({
    fieldId: 'originatingsubsidiary',
    value: US_SUBSIDIARY
});
girRec.setValue({
    fieldId: 'inventorysubsidiary',
    value: AU_SUBSIDIARY
});
var id1 = girRec.save();

var girRec2 = record.create({
    type: record.Type.GLOBAL_INVENTORY_RELATIONSHIP,
});
girRec2.setValue({
    fieldId: 'originatingsubsidiary',
    value: AU_SUBSIDIARY
});
girRec2.setValue({
    fieldId: 'inventorysubsidiary',
    value: US_SUBSIDIARY
});
girRec2.setValue({
    fieldId: 'externalid',
    value: 'AU_US_GIR'
});
girRec2.setValue({
    fieldId: 'isinactive',
    value: true
});
girRec2.setValue({
    fieldId: 'allocationsfulfillment',
    value: true
});
girRec2.setValue({
    fieldId: 'allocationscustomerreturn',
    value: false
});
var id2 = girRec2.save(); 

        

The following sample shows how to create a simple search that returns GIR records that are set as Inactive.

          var mySearch = search.create({
    type: record.Type.GLOBAL_INVENTORY_RELATIONSHIP,
    filters: [{
        name: 'isinactive',
        operator: search.Operator.IS,
        values: true
    }]
}); 

        

Related Topics

General Notices