Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

CAML Query builder not working for And/Or combination in SharePoint 2010

$
0
0

Hi All,

I am using CAML builder in SharePoint 2010 visual web part. But it is not working forAnd/Or combination.

Ex: I need to get the records from list based on Status=published or (Status=Draft and createdBy=currently logged in user) and AppName=SharePoint.

CAML query is not working for the above scenario. But for part of the above statement(below) is working.

Status=published or (Status=Draft and createdBy=currently logged in user)

Please let us know the solution which will work for And/Or combination in CAML query.

Thanks in Advance,

Krishna Rao Maturi.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>