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 |
|
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 |
|
Eugene Astafiev
Guest
|
Hello Søren,
The Mapi Store Accessor doesn't support multivalued properties. |
|
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 |
|
Eugene Astafiev
Guest
|
Hi Soren,
Thank you for letting us know. |
|