-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getContacts does not seem to be respecting searchTerm #311
Comments
PETOSS-268 |
Thanks for raising an issue, a ticket has been created to track your request |
Hi Mike, It may be worth trying it firstly with |
Thanks for looking at this so quickly pumpkinball. I tried your exact code but I still got 3 records returned (the only 3 contacts setup so far) and I would have expected no records would be returned since I don't have a Contact called Sandra So my code now looks like this:-
and the var_export lists 3 contacts as follows (some redacting of email etc with XXXXXXX)
Much appreciate any thoughts on why this appears to work for you but not for me :-) By the way I did try searching the Name field explicitly using the $where and that works OK so I could probably work around this issue. Mike |
Hi @thepilot21 it does seem bizarre that it's not working for you. |
I am using the getContacts example code from the SDK. My $searchTerm text = "Tracey" but all Contacts (only have 3 at the moment) are being returned in $result rather than just the matching one that I want. Here is my test code section.
Many thanks for any assistance.
Mike
PS. The example code in the docs has a syntax error on the $where line which I have corrected in my code.
The text was updated successfully, but these errors were encountered: