Example of Deleting a Custom Segment Value by Using Type Internal ID
This example shows how to delete an existing custom segment value.
The way you identify a custom segment value can vary depending on the endpoint and operation you are using. This example uses the 2017.1 endpoint. It demonstrates how to identify the segment by using the internal ID of the custom record type that represents the segment. This method is available with all endpoints. The value is identified by external ID.
SOAP Request
<soapenv:Body> <delete xmlns="urn:messages_2017_1.platform.webservices.netsuite.com"> <baseRef externalId="Apparel" typeId="39" 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" typeId="39" 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 Deleting a Custom Segment Value by Using Record ID
- Example of Getting a Custom Segment Value by Using Record ID
- Example of Getting a Custom Segment Value by Using Type Internal ID