Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CAML query case sensitive search

Tags:

xml

sharepoint

I have a caml query which is pulling data from sharepoint list

Here is the query I am using

tempQuery = "John"+CURRENT_USER_Info.currFilter+"";

The problem is I have search only for John and not john or JOHN

so basically looking for a caml query which can filter case sensitively..

Any help is appreciated.

like image 530
venkatram sunkara Avatar asked Jul 09 '12 22:07

venkatram sunkara


2 Answers

There is no option for case sensitivity in caml queries. You must filter the results secondary for case sensitivity.

like image 109
brian brinley Avatar answered Sep 20 '22 23:09

brian brinley


It is true that straight CAML queries are case-insensitive, but you may be able to use LINQ to SharePoint to get to what you're trying to achieve.

like image 36
mezmo Avatar answered Sep 17 '22 23:09

mezmo