Customer-Subsidiary Relationship
If you use NetSuite OneWorld and have enabled the Multi-Subsidiary Customer feature, you can share the customer and sub-customer records with multiple subsidiaries, and then select those subsidiaries on core transactions. An administrator can enable these features at Setup > Company > Enable Features, on the Company subtab.
For help working with Multi-Subsidiary Customers in the UI, see Assigning Subsidiaries to a Customer.
The internal ID for this record is customersubsidiaryrelationship
.
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.
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 customer-subsidiary relationship is scriptable in both client and server SuiteScript.
All three user events are supported: beforeLoad
, beforeSubmit
, and afterSubmit
.
Supported Functions
The customer-subsidiary relationship can be read, created, updated, and deleted.
Code Sample
The following sample shows how to create a customer-subsidiary relationship.
var csr = record.create({
type: record.Type.CUSTOMER_SUBSIDIARY_RELATIONSHIP
});
csr.setValue({
fieldId: 'entity',
value: 42
});
csr.setValue({
fieldId: 'subsidiary',
value: 1
});
var recId = csr.save();