AdvancedSearch Outlook

  • Thread starter Thread starter Saurabh Sharma
  • Start date Start date
S

Saurabh Sharma

Hi
"\http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/TestField\"
<> 'Value'";

This fileter in while using Outlook Advance search should give all those
mails which do not contain Value in TestField field but it is doing exact
match and not contain in. I got this filter by making a query in oulook.

If there is some other query plz tell me

Saurabh
 
Saurabh,

It sounds like you want to use a "like" operator. Unfortunately, it
does not seem that is supported. It only supports equals, not equals,
exists, and not exists.

You would have to cycle through each item and test the field yourself.

Hope this helps.
 
What platform are you using for this? Regular COM or VSTO? The VSTO approach
takes a NOT argument not <>. Not sure if it would be the same for COM. Check
to see.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



Nicholas Paldino said:
Saurabh,

It sounds like you want to use a "like" operator. Unfortunately, it
does not seem that is supported. It only supports equals, not equals,
exists, and not exists.

You would have to cycle through each item and test the field yourself.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Saurabh Sharma said:
"\http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-00000000
0046}/TestField\"
<> 'Value'";

This fileter in while using Outlook Advance search should give all those
mails which do not contain Value in TestField field but it is doing exact
match and not contain in. I got this filter by making a query in oulook.

If there is some other query plz tell me

Saurabh
 
I a using COM and it supports <>.
Nicolas - i used advance search so that i dont have to parse all mails as it
becomes slow. :(
I will look for some other work around. It supports LIKE and but doesnt
support NOT LIKE

Thanx
Saurabh

Alvin Bruney - ASP.NET MVP said:
What platform are you using for this? Regular COM or VSTO? The VSTO
approach
takes a NOT argument not <>. Not sure if it would be the same for COM.
Check
to see.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------



in
message news:[email protected]...
Saurabh,

It sounds like you want to use a "like" operator. Unfortunately, it
does not seem that is supported. It only supports equals, not equals,
exists, and not exists.

You would have to cycle through each item and test the field
yourself.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Saurabh Sharma said:
"\http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-00000000
0046}/TestField\"
<> 'Value'";

This fileter in while using Outlook Advance search should give all
those
mails which do not contain Value in TestField field but it is doing exact
match and not contain in. I got this filter by making a query in
oulook.

If there is some other query plz tell me

Saurabh
 
Back
Top