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.
adding a custom record
Hi All,
I am getting this error when I try to add a custom record and yet I am following the documentation to add a custom record. Please can anyone advise what may be causing the error. Moreover, how does netsuite know which parent record (customer entity) I am trying to link to. The format of the add operation for custom records doesn't seem to allow the specification of the parent record id
Many thanks
Dave
Fatal error: Uncaught SoapFault exception: [soapenv:Server.userException] org.xml.sax.SAXException: 'typeId' on {urn:core_2010_1.platform.webservices.netsuite.com}CustomRecordRef is required in /var/www/ukolc-gap/libraries/ukolc/data/netsuite/PHP_Toolkit/PHPtoolkit.php:1638 Stack trace: #0 /var/www/ukolc-gap/libraries/ukolc/data/netsuite/PHP_Toolkit/PHPtoolkit.php(1638): SoapClient->__soapCall('add', Array, NULL, Object(SoapHeader), Array) #1 /var/www/ukolc-gap/libraries/ukolc/data/netsuite/PHP_Toolkit/PHPtoolkit.php(1218): nsClient->makeCall('add', Array) #2 /var/www/ukolc-gap/libraries/ukolc/data/AddGAPCustomRecord.php(40): nsClient->add(Object(nsCustomRecordRef)) #3 {main} thrown in /var/www/ukolc-gap/libraries/ukolc/data/netsuite/PHP_Toolkit/PHPtoolkit.php on line 1638