Vendor-Subsidiary Relationship

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

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

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

Supported Operations

The following operations can be used with the vendor-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 vendor-subsidiary relationship reference page.

Note:

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

Usage Notes

The vendor-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 createVendorSub() throws Exception {

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

        VendorSubsidiaryRelationship vendorsub = new VendorSubsidiaryRelationship();
        vendorsub.setInternalId("23525206");
        vendorsub.setSubsidiary(sub);
        vendorsub.setIsPrimarySub(false);

        c.addRecord(vendorsub); 

            

SOAP Request

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

            

Related Topics

Lists
Other Lists
How to Use the SOAP Web Services Records Help
SOAP Web Services Supported Records
SOAP Schema Browser
SuiteTalk SOAP Web Services Platform Overview

General Notices