User Property

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

User Property
 
SSL




Posts: 178
Joined: 2014-01-05
I am adding a user property to appointments, is there way form me to find a specific appointment based on the user property, similar to :

 myAppointment = CType(namespace_.GetItemFromID(myOutlookID), Outlook.AppointmentItem)
Posted 22 May, 2014 04:10:34 Top
Andrei Smolin


Add-in Express team


Posts: 18793
Joined: 2006-05-11
Hello Tom,

This is possible if you use OutlookApp.AdvancedSearch() on a folder containing that item AND you add the UserProperty to the folder, that is when adding the user property you call myAppointment.UserProperties.Add(name, type, TRUE [, whatever]) - pay attention to the third parameter, see http://msdn.microsoft.com/en-us/library/office/ff867389%28v=office.15%29.aspx.

On how to use AdvancedSearch, see http://www.add-in-express.com/creating-addins-blog/2012/05/31/outlook-search-csharp-vbnet/

On how to construct the filter string, see these pages:
- http://msdn.microsoft.com/en-us/library/bb147591%28v=office.12%29.aspx
- http://msdn.microsoft.com/en-us/library/office/ff869597%28v=office.15%29.aspx


Andrei Smolin
Add-in Express Team Leader
Posted 22 May, 2014 06:06:19 Top