NonInventory Sales Item

Noninventory sales item records are used to track items you sell but do not stock.

For more information, see Non-Inventory Items.

Supported Operations

add | addList | delete | deleteList | get | getList | 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 noninventory sales item reference page.

Note:

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

Code Sample

See the following code sample of the update operation:

            NonInventorySaleItem nonInventorySaleItem = new NonInventorySaleItem();
         nonInventorySaleItem.setInternalId("248");
         nonInventorySaleItem.setLocation(new RecordRef(null, "1", null, RecordType.location));
         nonInventorySaleItem.setDisplayName("Updated display name");
         c.updateRecord(nonInventorySaleItem);

[SOAP request]
<soapenv:Body>
      <update xmlns="urn:messages_2019_1.platform.webservices.netsuite.com">
         <record internalId="248" xsi:type="ns7:NonInventorySaleItem" xmlns:ns7="urn:accounting_2019_1.lists.webservices.netsuite.com">
            <ns7:displayName xsi:type="xsd:string">Updated display name</ns7:displayName>
            <ns7:location internalId="1" type="location" xsi:type="ns8:RecordRef" xmlns:ns8="urn:core_2019_1.platform.webservices.netsuite.com"/>
         </record>
      </update>
</soapenv:Body>

[SOAP response]
<soapenv:Body>
      <addResponse xmlns="urn:messages_2019_1.platform.webservices.netsuite.com">
         <writeResponse>
            <platformCore:status isSuccess="true" xmlns:platformCore="urn:core_2019_1.platform.webservices.netsuite.com">
               <platformCore:statusDetail>
                  <platformCore:afterSubmitFailed>false</platformCore:afterSubmitFailed>
               </platformCore:statusDetail>
            </platformCore:status>
            <baseRef internalId="248" type="nonInventorySaleItem" xsi:type="platformCore:RecordRef" xmlns:platformCore="urn:core_2019_1.platform.webservices.netsuite.com"/>
         </writeResponse>
      </addResponse>
</soapenv:Body> 

          

Related Topics

General Notices