Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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);