Cannot get PT_MV_UNICODE property from folder through MAPI Store Accessor

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

Cannot get PT_MV_UNICODE property from folder through MAPI Store Accessor
 
Søren J. Hansen




Posts: 3
Joined: 2010-01-14
Hi folks,

I'm trying to access two PT_MV_UNICODE (multivalued, ie. string array) properties in calendar folder through MAPI Store Accessor using method Folder.GetProperty.

The properties are not documented by MS but can be seen through eg. OutlookSpy. Their tags are 0x36E7101F and 0x36E8101F and can also be accessed through EWS. However when I address them through GetPropertiy on the folder item, the method returns null. I've tried getting other undocumented properties (such as 0x6656001f below) w/o problems, however none of them were multivalued. I've also verified that the folder's ENTRYID is correct, ie. I'm working on the right folder.

Does the GetProperty method not support multivalued data types or is there another problem?


object folderName = folder.GetProperty(0x3001001F); // OK
object folderFormIPMNames = folder.GetProperty(0x36e7101f); // returns null
object folderFormDisplayNames = folder.GetProperty(0x36e8101f); // returns null
object serverName = folder.GetProperty(0x6656001F); // OK


The two tags contain names and IDs of custom forms whose fields are to be made searchable in Outlook views. I need to set up these properties on the user's calendar in order to make various search views work correctly.

Best regards,
Søren
Posted 14 Jan, 2010 12:16:24 Top
Søren J. Hansen




Posts: 3
Joined: 2010-01-14
Well, it seems as if multivalued strings don't work through the MAPI store accessor. I tried to set an arbitrary property, receiving error 80070057 (illegal parameter) which indicates that MAPI does not like what it is getting from the accessor wrapper:


string[] testVar = { "Linie 1", "Linie 2" };
int rtnVar = folder.SetProperty(0x36e9101f, testVar); // returns 0x80070057


Best regards,
Søren
Posted 15 Jan, 2010 04:07:54 Top
Eugene Astafiev


Guest


Hello Søren,

The Mapi Store Accessor doesn't support multivalued properties.
Posted 18 Jan, 2010 05:10:55 Top
Søren J. Hansen




Posts: 3
Joined: 2010-01-14
Hi Eugene,

Ok, that was what I expected from the error; I hope it will be supported some day.

I've made a work-around using EWS instead so the problem has been solved in that manner instead.

Best rgds,
Søren
Posted 20 Jan, 2010 06:59:09 Top
Eugene Astafiev


Guest


Hi Soren,

Thank you for letting us know.
Posted 20 Jan, 2010 08:05:35 Top