Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
attach/detach for customer/opportunity
The documentation suggests that attach() can be called to attach opportunity to a customer record. However, I get the error message:
"Missing or Invalid RecordType for AttachTo (USER_ERROR)".
Here is the SOAP message:
<SOAP-ENV:Body xmlns:ns1="urn:messages_2008_1.platform.webservices.netsuite.com">
<ns1:attach xsi:type="ns1:AttachRequest">
<ns1:attachReferece xmlns:ns2="urn:core_2008_1.platform.webservices.netsuite.com" xsi:type="ns2:AttachBasicReference">
<ns2:attachTo internalId="1315" type="customer" xsi:type="ns2:RecordRef"></ns2:attachTo>
<ns2:attachedRecord internalId="1178" type="opportunity" xsi:type="ns2:RecordRef"></ns2:attachedRecord>