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!
setSearchPreferences returns UNEXPECTED_ERROR
I am using the new PHP 2013.1 Toolkit and I am trying to return all lines of a work order record, specifically the itemList field values. If I do not use setSearchPreferences and leave the default, my request processes successfully but only returns the body fields. If I perform setSearchPreferences so that my results contain more than just the body fields, my results return an UNEXPECTED_ERROR. I have confirmed that I can successfully use setSearchPreferences with other transaction types, such as a Sales Order, with successful results.
Anyone have any ideas?
My Failing Code:
[PHP]
$nsclient = new NetSuiteService();
$nsclient->setSearchPreferences(false, 50, true);
Anyone have any ideas?
My Failing Code:
[PHP]
$nsclient = new NetSuiteService();
$nsclient->setSearchPreferences(false, 50, true);
Tagged:
0