Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Netsuite PHP toolkit cannot update Sales Order
Hello I am trying to modify a custom body field on a sales order. The customfields are custbody_order_status(a dropdown) and custbody_move_confirmed(a checkbox). How would i check the checkbox via the API?
When I run this script I get UPDATE SUCCESS, id 114467, but the fields are not changed in the record. Is there something wrong with my code?
[PHP]
$customStringFieldList = new StringCustomFieldRef();
$customStringFieldList->internalId = "custbody_order_status";
$customStringFieldList->value = utf8_encode("Cancelled");
$customSelectFieldList = new SelectCustomFieldRef();
$customSelectFieldList->value = new ListOrRecordRef();
$customSelectFieldList->value->internalId = 49;
$customSelectFieldList->internalId = 'custbody_move_confirmed';
$basicCustomRecord = new SalesOrder();
When I run this script I get UPDATE SUCCESS, id 114467, but the fields are not changed in the record. Is there something wrong with my code?
[PHP]
$customStringFieldList = new StringCustomFieldRef();
$customStringFieldList->internalId = "custbody_order_status";
$customStringFieldList->value = utf8_encode("Cancelled");
$customSelectFieldList = new SelectCustomFieldRef();
$customSelectFieldList->value = new ListOrRecordRef();
$customSelectFieldList->value->internalId = 49;
$customSelectFieldList->internalId = 'custbody_move_confirmed';
$basicCustomRecord = new SalesOrder();
0