function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RichardRichard 

punctuation in queries

I'm using the 2.0 version of the api to query data using complex query filters.

I have not noticed this problem before but when I build a complex query using a phrase as the value to search for which contains punctuation such as a full stop, the query never returns any results.

should I expect this behaviour?
Should I be encoding my search values in some way?

If anyone can point me in the right direction on this one I would be very grateful.

All the best,
Richard
DevAngelDevAngel

Hi Richard,

I can duplicate the problem.  Can you provide additional information?  Are you using equals, contains, starts with or something else in your filter?  By complex I assume you mean you have more that one criteria, correct?  If correct, can you tell me what other criteria you are using?  Is it possible for you to capture the xml-rpc request and post it here?

RichardRichard
Dave,

eeek!
I've resolved this! My query was removing some keywords and not the associated punctuation!!

Using a starts with condition it was never finding the account with the punctuation in the wrong place. appologies for wasting your time!

Richard