Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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.