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.
Sort Order in Search
Hello all,
We recently started using the PHP toolkit and I'm having some trouble getting transaction search results returned in the order I'd like. I understand the default order is the order date/time, but I'd like results returned ordered by "last modified". Can anyone point me in the right direction? Below is the code used for the transaction search. Thanks!
[PHP]
// Get only sales orders that have not already been transmitted to warehouse.
$aSearchStringCustomField = new nsComplexObject('SearchStringCustomField');
$aSearchStringCustomField->setFields(array( 'searchValue' => '0',
'internalId' => 'CUSTBODYTRANSMITTEDTOWAREHOUSE',
'operator' => 'contains'));
// Order Status
// Get only orders that are in pending fulfillment status (vs. pending approval)
We recently started using the PHP toolkit and I'm having some trouble getting transaction search results returned in the order I'd like. I understand the default order is the order date/time, but I'd like results returned ordered by "last modified". Can anyone point me in the right direction? Below is the code used for the transaction search. Thanks!
[PHP]
// Get only sales orders that have not already been transmitted to warehouse.
$aSearchStringCustomField = new nsComplexObject('SearchStringCustomField');
$aSearchStringCustomField->setFields(array( 'searchValue' => '0',
'internalId' => 'CUSTBODYTRANSMITTEDTOWAREHOUSE',
'operator' => 'contains'));
// Order Status
// Get only orders that are in pending fulfillment status (vs. pending approval)
0