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.
Multiple internalId search
Hi
I have the code below which works fine for searching for one internalId but I want to search for multiple internalId's in one search and can't get it to work.
Help appreciated.
$itemSearch = new nsComplexObject("TransactionSearchBasic");
$itemIdSearchField = new nsComplexObject("SearchMultiSelectField");
$itemIdSearchField->setFields(array("operator" => "anyOf",
"searchValue" => new nsListOrRecordRef(array('internalId' => 'xxx'))));
$itemSearch->setFields(array("internalId" => $itemIdSearchField));
$searchResponse = $myNSclient->search($itemSearch);
0