AdxmapiStoreAccessor / custom property

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

AdxmapiStoreAccessor / custom property
 
Christoph Gasser




Posts: 7
Joined: 2010-02-09
We want to use MAPI Accessor to get the value of a custom property (MailItem). The problem is, that the property we want to access is not listed in the array (ADXMAPIPropertyTag). How to get the information of a custom array?

With OutlookSpy we could get all the meta information about the custom property:
Tag num: 0x8090001F
Tag sym: 0x8090
Type: PT_UNICODE
Guid: {D0F41A15-9E91-D111-84E6-0000F877D428}
Kind: MNID_STRING
ID: Saveset ID

BR
Christoph
Posted 26 Feb, 2010 09:14:29 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hello Christoph,

You can pass the numeric ID of that property to the GetProperty function (for example, 0x8090001F in your case).
.NET, Extended MAPI, Windows Phone & RT
Posted 28 Feb, 2010 05:49:06 Top
Christoph Gasser




Posts: 7
Joined: 2010-02-09
Ok, thank you. That's working fine. What I also forgott at the biginning: adxmapiStoreAccessor.Initialize(false); I did not initialize the object.

Is it also possible to get the property value by GUID or by the DASL. In my case the DASL is 'http://schemas.microsoft.com/mapi/string/{D0F41A15-9E91-D111-84E6-0000F877D428}/Saveset ID' for example.

BR
Christoph
Posted 04 Mar, 2010 03:16:38 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hello Christoph,

No, it is not possible. The MAPI Store Accessor was not designed for DASL or GUIDs.
.NET, Extended MAPI, Windows Phone & RT
Posted 04 Mar, 2010 04:43:38 Top