Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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);