Compatibility:
SharePoint 2013 Foundation (SPF) and Server (SPS) SharePoint 2010 Foundation (SPF) and Server (SPS) Windows SharePoint Services (WSS) 3.0 / Microsoft Office SharePoint Server (MOSS) 2007
SPF & SPS 2013 • 2010 • 2007
User Voices
(Loading...)

FilterZen: Feedback Forum > Does Not Contain Operator

Hello,

I am wondering if you can utilize some kind of absence operator such as "Does Not Contain" in CAML direct filtering mode.

What I am trying to do is show several profile objects which do not have a particular office, there are several offices I want to exclude.

May 7, 2011 at 5:33 | Unregistered CommenterJaymz

Hi Jaymz,

unfortunately in 10+ years of SharePoint MS has never managed to include a generic NOT operator combinable with other operators such as Contains, nor have they ever built a NotContains operator.

However, if you only want to exclude "several" offices, I believe you could make do with the Not-Equals operator?

May 8, 2011 at 18:50 | Registered CommenterROXORITY