Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Php Tool Kit (Adding to a custom record error)
I'm getting the following error when I attempt to add to a custom record through php.
*The specified custom field key is missing
Here is my code...
// netsuite servic
$service = new NetSuiteService();
//create an instance of the fields of the custom record
$customFieldList = new StringCustomFieldRef();
$customFieldList->internalId = "custrecord_inv_phone_number";
$customFieldList->value = "333.222.1212";
$customFieldList2 = new StringCustomFieldRef();
$customFieldList2->internalId = "custrecord_inv_cust_number";
$customFieldList2->value = "4423234234";
$basicCustomRecord = new CustomRecord();
$basicCustomRecord->name = "Client Invoice Body";
$basicCustomRecord->recType = new RecordRef();
$basicCustomRecord->recType->internalId = "11"; //Record Type's internal ID (Setup > Customization > Record Types > Basic Record Type (Internal ID=14)