Hi there,
We are using PHPToolkit and trying to add the "entity" to our search criteria. Here is an example of what we have:
$search = new TransactionSearchBasic();
$search->tranId->operator = "startsWith";
$search->tranId->searchValue = "04-";
$search->dateCreated->operator = "on";
$search->dateCreated->searchValue = "2014-07-15T00:00:0.000-08:00";
$request = new SearchRequest();
$request->searchRecord = $search;
$searchResponse = $service->search($request);
print_r($searchResponse);
With this we can receive all results for the invoice record "04-", but we would like to set a criteria that would only return these records for a matching entity internalid. We have tried:
$search->entity->operator = "anyOf";
$search->entity->searchValue = "408165";
This gives us an error of "INVALID_KEY_OR_REF".
Any help would be much appreciated!
Thank you,
James