Customer-Subsidiary Relationship

If you use NetSuite OneWorld and have enabled the Multi Subsidiary Customer feature, you can share customer and sub-customer records with multiple subsidiaries, and then select those subsidiaries on core transactions.

You can enable these features at Setup > Company > Setup Tasks > Enable Features, on the Company subtab.

For information about working with multi-subsidiary customers in the UI, see Assigning Subsidiaries to a Customer.

The customer-subsidiary relationship record is defined in the relationships XSD.

Supported Operations

The following operations can be used with the customer-subsidiary relationship record.

add | addList | delete | deleteList | get | getList | getDeleted | getSavedSearch | getSelectValue | search | update | updateList | upsert | upsertList

Note:

You can also use the asynchronous equivalents of SOAP web services list operations. For information about asynchronous operations, see SOAP Web Services Asynchronous Operations. For more information about request processing, see Synchronous Versus Asynchronous Request Processing.

Field Definitions

The SOAP Schema Browser includes definitions for all body fields, sublist fields, search filters, and search joins available to this record. For details, see the SOAP Schema Browser’s customer-subsidiary relationship reference page.

For information on using the SOAP Schema Browser, see SOAP Schema Browser.

Usage Notes

The customer-subsidiary relationship record is not visible in the UI. The fields of this record are displayed in the header of the customer record, and on the Subsidiaries subtab.

Sample Code

In the following example, a new customer-subsidiary relationship record is created.

Java

                      public void createCustSub() throws Exception {

        RecordRef sub = new RecordRef();
        sub.setInternalId("3");

        CustomerSubsidiaryRelationship custsub = new CustomerSubsidiaryRelationship();
        custsub.setInternalId("117");
        custsub.setSubsidiary(sub);
        custsub.setIsPrimarySub(false);


        c.addRecord(custsub); 

            

SOAP Request

                       <add xmlns="urn:messages_2019_1.platform.webservices.netsuite.com">   
            <record internalId="117" xsi:type="ns7:CustomerSubsidiaryRelationship" xmlns:ns7="urn:relationships_2019_1.lists.webservices.netsuite.com">    
               <ns7:subsidiary internalId="3" xsi:type="ns8:RecordRef" xmlns:ns8="urn:core_2019_1.platform.webservices.netsuite.com"/>    
               <ns7:isPrimarySub xsi:type="xsd:boolean">false</ns7:isPrimarySub>   
            </record>  
         </add> 
      </soapenv:Body> 

            

Related Topics

General Notices