Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
PHPToolkit Filtering Advanced Searches...
Hi there,
We are using the PHPToolkit and would like to filter the results of a saved search. We don't have a problem getting the results for the entire saved search, but we would like to filter it by a value in the saved search result. Here is what we have:
$searchAdvanced = new TransactionSearchAdvanced();
$searchAdvanced->savedSearchId = "1595";
$phoneSearchField = new SearchStringField();
$phoneSearchField->operator = "is";
$phoneSearchField->searchValue = $phone;
$searchCust = new CustomerSearchBasic();
$searchCust->phone = $phoneSearchField;
$request = new SearchRequest();
$request->criteria = $phoneSearchField;
$request->searchRecord = $searchAdvanced;
$searchResponse = $service->search($request);
$records = $searchResponse->searchResult->searchRowList->searchRow;
print_r($searchResponse);