Vendor-Subsidiary Relationship

If you use NetSuite OneWorld, you can share the vendor record with multiple subsidiaries, and then select those subsidiaries on core transactions.

For help working with Multi-Subsidiary Vendors in the UI, see Assigning Subsidiaries to a Vendor.

The internal ID for this record is vendorsubsidiaryrelationship.

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 customer-subsidiary and vendor-subsidiary relationships belonging to the same entity, both share the external ID of the entity. For example, Company ABC can be both a vendor and customer. If Company ABC has a vendor and customer relationship with the US subsidiary, both share the same external ID.

Supported Script Types

The vendor-subsidiary relationship is scriptable in both client and server SuiteScript.

All three user events are supported: beforeLoad, beforeSubmit, and afterSubmit.

Supported Functions

The vendor-subsidiary relationship can be read, created, updated, and deleted.

Code Sample

The following sample shows how to create a vendor-subsidiary relationship.

          var vsr = record.create({
    type: record.Type.VENDOR_SUBSIDIARY_RELATIONSHIP
});
vsr.setValue({
    fieldId: 'entity',
    value: 2
});
vsr.setValue({
    fieldId: 'subsidiary',
    value: 6
});
var recId = vsr.save(); 

        

Related Topics

General Notices