In my plugin i use ExtendedProperty for save some metadata on it. I set values of ExtendedProperties using EWS. I receive requirement for not use EWS anymore and it's allowed to connect to Outlook only. SO i see that i can use UserPropery of MailItem. So i have to migrate old data by some way. Firs that come to my mind is query all items that have specific Extended Property using EWS and copy values to MailItem.UserProperty. Does anyone know how to query it from EWS or maybe you have another ideas how to migrate this data?
Asked
Active
Viewed 373 times
1 Answers
3
Using ExtendedProperties with EWS essentially creates custom MAPI properties on Outlook items, which are also accessible in the Outlook Object Model via the UserProperties collection or via a PropertyAccessor. You shouldn't need to migrate anything.

Eric Legault
- 5,706
- 2
- 22
- 38
-
2Keep in mind however that UserProperties will not see properties set using ExtendedProperties in EWS as it does not update the blob that stores the user properties definitions. PropertyAccessor.GetProperty will work fine. – Dmitry Streblechenko Oct 29 '14 at 06:09
-
Good to know Dmitry! That's crazy though – Eric Legault Oct 29 '14 at 15:44