Contact search should be case insensitive via API
While creating the sales invoice via API, usually we check if the contact is already created or not, to search the contact the name/keyword must be used in the same case that is available on Xero, if its different then it will not search.
Hi Swapnil,
Thanks for the post.
We currently have a work around for the issue you are currently facing which may be of use.
It is possible to include ToLower() in the where clause when quering the endpoint. ie. ?Name.ToLower()=="{name}’
See the following commultiy thread for more information: https://stackoverflow.com/questions/60265042/can-xero-contacts-be-filtered-by-name-case-insensitive
-
Sophia Adams
commented
I agree that making contact search case insensitive through the API would improve usability and reduce unnecessary search failures. I recently came across http://wilsoncountycourt.org while looking into how legal record searches can be organized, and it reminded me how much smoother a flexible search experience can be. Small enhancements like this can save users time and make integrations far more reliable. Thanks for bringing up such a practical improvement.