Search by UserProperties

Add-in Express™ Support Service
That's what is more important than anything else

Search by UserProperties
 
Udi Azulay




Posts: 48
Joined: 2007-06-18
Hi,

How do i search items by their UserProperty specific value?
e.g. : i would like to search all items in the Calendar folder with the specific UserProperty value.

Thanks,
Udi
Posted 04 Jul, 2007 10:17:15 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Udi.

You can use the Find method of the Outlook.Items interface.
Please read about this method in the Visual Basic Help for Outlook.



P.S. We always do our best to answer your forum requests as soon as possible. However, we apply the rule "first in first out" with Premium Support Service subscribers taking priority. Please understand it may take us some time to do research on the issue. Please be assured we will let you know as soon as the best possible solution is found.

Posted 04 Jul, 2007 13:10:48 Top
Udi Azulay




Posts: 48
Joined: 2007-06-18
This find method allow searching only within the item attributes not the the UserProperties.
Posted 04 Jul, 2007 13:31:30 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Udi, it works with user properties too. However they should be available in a folder.
Posted 05 Jul, 2007 07:34:59 Top
Udi Azulay




Posts: 48
Joined: 2007-06-18
just to better clarify - i am setting user properties within the items inside the folder - not the folder(Calendar) and now i want to search among all items where the specific User Property has a specific value!

Thanks,
Udi
Posted 05 Jul, 2007 07:42:35 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Udi, what value do you pass in the 'AddToFolderFields' parameter of the 'Add' method of the Outlook.UserProperties interface?
To use the Find method you need to pass 'true'.
Posted 05 Jul, 2007 15:52:47 Top