Discussions
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