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.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Custom Field Update Failed
Hi,
I'm having trouble updating my custom field using Suitetalk.
Below is the part of my code:
$InvoiceId = $_GET['tranid'];
$InvoiceRecord = new nsComplexObject('Invoice');
$BooleanCustomField = new nsComplexObject('BooleanCustomFieldRef');
$BooleanCustomField->setFields(array('internalId' => 'custbody_pricecustom', 'value' => False));
$StringCustomField = new nsComplexObject('StringCustomFieldRef');
$StringCustomField->setFields(array('internalId' => 'custbody_tofollow', 'value' => 'Test'));
$InvoiceFields = array(
'internalId' => $InvoiceId,
'customFieldList' => array($BooleanCustomField));
$InvoiceRecord -> setFields($InvoiceFields);
$updateResponse = $myNSclient->update($InvoiceRecord);
when I try to update a boolean (Checkbox) field, it always fail to change. But when I update other custom field i.e. String Field, it works perfectly.