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.
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.