Example of Deleting a Custom Segment Value by Using Record ID

This example shows how to delete an existing custom segment value.

The way you identify a custom segment value varies depending on the endpoint and operation you are using. This example uses the 2017.1 endpoint, and the segment is identified by using the segment’s Record ID value. This method of identifying a segment during an operation is available only with the 2016.1 endpoint and later.

SOAP Request

          <soapenv:Body> <delete xmlns="urn:messages_2017_1.platform.webservices.netsuite.com"> <baseRef externalId="Apparel" scriptId="customrecord_cseg_profitcenter" xsi:type="ns7:CustomRecordRef" xmlns:ns7="urn:core_2017_1.platform.webservices.netsuite.com"/> </delete>
</soapenv:Body> 

        

SOAP Response

          <soapenv:Body> <deleteResponse xmlns="urn:messages_2017_1.platform.webservices.netsuite.com"> <writeResponse> <platformCore:status isSuccess="true" xmlns:platformCore="urn:core_2017_1.platform.webservices.netsuite.com"/> <baseRef internalId="8" externalId="Apparel" scriptId="customrecord_cseg_profitcenter" xsi:type="platformCore:CustomRecordRef" xmlns:platformCore="urn:core_2017_1.platform.webservices.netsuite.com"/> </writeResponse> </deleteResponse>
</soapenv:Body> 

        

Related Topics

General Notices