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
- Working With Custom Segment Values
- Identifying Custom Segment Values
- Example of Dynamic Discovery of Existing Custom Segments
- Example of Adding a Custom Segment Value
- Example of Updating a Custom Segment Value
- Example of Getting a Custom Segment Value by Using Record ID
- Example of Getting a Custom Segment Value by Using Type Internal ID
- Example of Deleting a Custom Segment Value by Using Type Internal ID