User Property

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

User Property

Posts: 171
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: 16744
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

On how to use AdvancedSearch, see Advanced search in Outlook programmatically: C#, VB.NET

On how to construct the filter string, see these pages:
- Filtering a Custom Field
- Items.Restrict Method (Outlook)

Regards from Belarus (GMT+3),

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