A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

DASL Filter on custom property



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 8th 07, 05:58 AM posted to microsoft.public.outlook.program_addins
Jeff Graves
external usenet poster
 
Posts: 3
Default DASL Filter on custom property

Nearly finished with our "Outlook ticketing system." The last piece of
the puzzle is to display lists of tickets based on information stored
in our SQL database (assigned to, status, etc). I believe the best way
to achieve this is using the Outlook View Control on the public folder
and using the Filter property of the ActiveX object. The Transport
Agent I wrote appends a custom x-header with the ticket number and
updates appropriate info in SQL. Using OutlookSpy, I can see the
property on the message and it gives me a DASL syntax of:

http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/x-ticketnumber

And the value of the ticket number. However, using this in my filter
doesn't return any results:

objViewCtl.Filter = "http://schemas.microsoft.com/mapi/string/
{00020386-0000-0000-C000-000000000046}/x-ticketnumber = '75'"

In fact, if I do this, all emails show up:

objViewCtl.Filter = "http://schemas.microsoft.com/mapi/string/
{00020386-0000-0000-C000-000000000046}/x-ticketnumber IS NULL"

I found that the DASL filter doesn't work for any properties where the
hexadecimal tag value is greater than &H8000 and a few other random
ones (like "x-ms-exchange-organization-authsource" and
"urn:schemas:mailheader:message-id", including those generated by
Outlook or Exchange. Is this a known limitation? We also append the
ticket number to the subject, so I *could* filter on that, but I think
this might be MUCH cleaner if I can just access the property directly.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot find an item according to Categories or Custom property Johny Outlook - Using Forms 0 November 29th 06 09:52 PM
Pocket Outlook Contact Custom Property and Active Sync jmsoftware Outlook - Using Forms 0 October 4th 06 10:23 PM
Reading a Custom Appointment Item's Conflict Property in Item_Write Function [email protected] Outlook - Using Forms 2 August 9th 06 07:53 PM
DASL Filters!!!! Radiohead Add-ins for Outlook 2 February 21st 06 03:40 PM
How to validate a Custom Property Page Jack Zhang Add-ins for Outlook 1 February 9th 06 08:22 PM


All times are GMT +1. The time now is 09:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.