J
John Riddle
Hello,
I have some custom code that allows a user to save a view (such as when they
run a filter against items in a public folder). Now the users want a
notification when a new item is added to the folder that fits one of their
custom filters. I can easily create a newitem event for the folder and then
check the custom views whenever an item is added to get the various filters
that might be applied. The resulting filtered part of the XML would look like
this:
<filter>("urn:schemas:httpmail:textdescription" LIKE '%oracle%' AND
"urn:schemas:httpmail:textdescription" LIKE '%java%' AND
"urn:schemas:httpmail:textdescription" LIKE '%unix%')</filter>
Now, I don't want to run each saved filter against the folder and check to see
if any of the resulting items match the item just added. That would hang the
user's computer for too long each and every time an item was added to the
public folder. What I would like to do is simply check this filter against the
one (1) new item itself.
Can somebody tell me if there's an easy way to see if the new item's (contact
item) properties match those specified in the custom filter?
Thanks,
John
I have some custom code that allows a user to save a view (such as when they
run a filter against items in a public folder). Now the users want a
notification when a new item is added to the folder that fits one of their
custom filters. I can easily create a newitem event for the folder and then
check the custom views whenever an item is added to get the various filters
that might be applied. The resulting filtered part of the XML would look like
this:
<filter>("urn:schemas:httpmail:textdescription" LIKE '%oracle%' AND
"urn:schemas:httpmail:textdescription" LIKE '%java%' AND
"urn:schemas:httpmail:textdescription" LIKE '%unix%')</filter>
Now, I don't want to run each saved filter against the folder and check to see
if any of the resulting items match the item just added. That would hang the
user's computer for too long each and every time an item was added to the
public folder. What I would like to do is simply check this filter against the
one (1) new item itself.
Can somebody tell me if there's an easy way to see if the new item's (contact
item) properties match those specified in the custom filter?
Thanks,
John