[E2013][EWS][Windows] retreive outlook userproperties in web client. RRS feed

  • Question

  • Hi,

    We've built an outlook plugin that requires setting user properties to associate client & custom information with a particular mailItem. Currently we are creating an email web client and want to transfer and access those user properties on the web client.  Are these properties bundled into the message header or stored on exchange and retrieved through a saved key. How can I access these properties, on another mail server, do I have to transfer these to MAPI fields? 

    Milton C.

    Milton Cody

    Tuesday, April 14, 2015 10:40 PM

All replies

  • You can access any user properties you create in your Outlook plugin in EWS using the Extended property interfaces see . The only thing you can't do with EWS is read or write the userproperty definition blob (which just means you can't enumerate what properties a user has created). That should really be issue however all you need to do is use a MAPI editor like MFCMapi or Outlook Spy to look at an existing item where the properties have set you should then be able to use them like

    ExtendedPropertyDefinition UserProperty = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.PublicStrings, "MyCustomProperty", MapiPropertyType.String);

    Wednesday, April 15, 2015 2:26 AM
  • Hi Glen,

    So If I'm accessing the messages through Imap4 and those properties would only be available on an exchange server environment. I would not be able to get them from msg object, or anything correct? 

    Milton Cody

    Wednesday, April 15, 2015 7:53 PM
  • Not using IMAP no I would suggest that you use X-Headers instead which will work okay across IMAP, EWS and MAPI.


    Wednesday, April 15, 2015 10:59 PM