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

Not in membership caml query

$
0
0
Hi

I have a SharePoint List with an owner column ( type of Person/group)  that contains the SharePoint group that own the item.

Now I would like to show to user in a webpart only items that he does't own. I have to use a caml query that must contain membership clause but i don't see how to use the negative form of this query : 

 query.Query = "<Where><Membership Type='CurrentUserGroups'><FieldRef Name='BelongsTO/></Membership></Where>"; 

How to say " items that don't belongs to Me " in caml language. 


Any help will be gadly appreciated.



Viewing all articles
Browse latest Browse all 11571

Trending Articles



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