I'm providing the internal ids of both the contact and the customer (both of which exist), but getting this error:
INVALID_DETACH_RECORD_TYP
Missing or Invalid RecordType for DetachFrom
Seems like this should be straightforward, but I can't figure out what I'm doing wrong (and the documentation is sparse).
Here's my request:
<soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <passport soapenv:mustUnderstand="0" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" xmlns="urn:core_2015_1.platform.webservices.netsuite.com"> <email>**************</email> <password>********************</password> <account>**************</account> </passport> </soapenv:Header> <soapenv:Body> <platformMsg:detach xmlns:platformMsg="urn:messages_2015_1.platform.webservices.netsuite.com"> <ns1:detachReference xsi:type="ns1:DetachBasicReference" xmlns:ns1="urn:core_2015_1.platform.webservices.netsuite.com"> <ns1:detachFrom xsi:type="ns1:RecordRef" type="contact" internalId="21532"/> <ns1:detachedRecord xsi:type="ns1:RecordRef" internalId="37010"/> </ns1:detachReference> </platformMsg:detach> </soapenv:Body> </soapenv:Envelope>
In the above, "21532" is my customer, "37010" is my contact, though I tried flipping them and got the same result.Any ideas?Thanks,Evan