<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Trying to do case insensitive comparison in web api</title><link>https://community.appian.com/discussions/f/general/14943/trying-to-do-case-insensitive-comparison-in-web-api</link><description>I am writing a web-api to query our employee table. To that end, I want to be able to query an employee based on a case-insensitive search of the email address. 
 
 Here&amp;#39;s my queryFilter that I am using... 
 
 filter: a!queryFilter( field: &amp;quot;Email&amp;quot;, operator</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Trying to do case insensitive comparison in web api</title><link>https://community.appian.com/thread/66860?ContentTypeID=1</link><pubDate>Tue, 28 May 2019 10:48:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:44866cd6-69c9-4f89-9622-830d2e967453</guid><dc:creator>sanzyas</dc:creator><description>&lt;p&gt;Dear David,&lt;/p&gt;
&lt;p&gt;a!query(&lt;br /&gt; filter: a!queryFilter(&lt;br /&gt; field: &amp;quot;email&amp;quot;,&lt;br /&gt; operator: &amp;quot;=&amp;quot;,&lt;br /&gt; value: http!request.queryParameters.email&lt;br /&gt; ), &lt;br /&gt; pagingInfo: a!pagingInfo(&lt;br /&gt; startIndex: 1,&lt;br /&gt; batchSize: 50&lt;br /&gt; )&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;I tried the above syntax where it was not giving the results, hence I changed the operator to have &amp;quot;contains&amp;quot; rather &amp;quot;=&amp;quot;. This time I got the results, then I switched back to &amp;quot;=&amp;quot; operator then it worked.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Ideally the above mentioned behavior is not expected rather it should work with the &amp;quot;=&amp;quot; operator. Also I would suggest if this does not work, you could return the email as Upper case in the record and search with upper(&lt;/span&gt;&lt;span style="font-family:inherit;"&gt;http!request.queryParameters.emailAddress)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trying to do case insensitive comparison in web api</title><link>https://community.appian.com/thread/66852?ContentTypeID=1</link><pubDate>Mon, 27 May 2019 10:47:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:62cb3c01-eeb7-4a2b-a24c-456304741ac3</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;AFAIK queryFilter() does a case-insensitive filtering. Have you tried value as just&amp;nbsp;&lt;strong&gt;&lt;span&gt;http!request.queryParameters.emailAddress?&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;without any function like upper() etc. The filter should work properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>