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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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