MAPI Store Accessor: Can't read MAPI property

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

MAPI Store Accessor: Can't read MAPI property
Can't read Outlook._TaskItem.MAPIOBJECT (TaskDeadOccurrence) property 
Serge UNN


Developer


Posts: 2
Joined: 2010-08-18
Hello,

I'm trying to use MAPI Store Accessor for getting Outlook._TaskItem property, and have some problem with it.

I have an method:

public static bool GetMAPIPropertyAsBool(object oMAPIObject, uint uiPropertyTag)
        {
            var accessor = new AddinExpress.MAPI.ADXMAPIStoreAccessor();
            accessor.Initialize(true);
            var prop = accessor.GetProperty(oMAPIObject, uiPropertyTag);
            accessor.LogOff();
            return Boolean.Parse(prop.ToString());
        }


And call:

MAPI.GetMAPIPropertyAsBool(oMapiObject, 0x00008109);


It's work perfect for defined properties as ENUM in Accessor, but I need to read TaskDeadOccurrence(ID:0x00008109) property as bool from Outlook._TaskItem.MAPIOBJECT, and it return NULL for me..

I use OutlookSpy for inspecting the item:

[img]http://i912.photobucket.com/albums/ac328/Serge_UNN/Capture.jpg?t=1282139017[/img]

And i have found this property...
How can I read this property? Any ideas?

Thanks for help.
Posted 18 Aug, 2010 11:32:11 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Serge,

Do you pass an instance of the TaskItem class to the GetProperty function (not a MAPIOBJECT)?

Please note that the mentioned property may have different numeric ID on another PC (aka named property).
.NET, Extended MAPI, Windows Phone & RT
Posted 19 Aug, 2010 07:33:26 Top
Serge UNN


Developer


Posts: 2
Joined: 2010-08-18
Hello Eugene,

Yes, i have passed TaskItem object from


OutlookRoutine.Instance.MapiItemsHandler.ProcessCurrentInspectorItem(...)


also tried to pass item from


var accessor = new AddinExpress.MAPI.ADXMAPIStoreAccessor();
accessor.Initialize(true);
var item = accessor.GetMapiItem(oMAPIObject) //oMAPIObject is Outlook._TaskItem


but had the same no result..

I have read web.mailana.com/exchangedocs/[MS-OXOTASK].pdf and used id from there.. with no result.

- "Please note that the mentioned property may have different numeric ID on another PC (aka named property)."
so, i need to somehow get ID of "TaskDeadOccurrence" property and then try to get it value? Have you tried to do this in .NET managed code? any suggestions?

Thanks, Serhiy.
Posted 19 Aug, 2010 08:15:35 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Serge,

No, didn't try to use it in a managed code. You can try to use Redemption instead.
.NET, Extended MAPI, Windows Phone & RT
Posted 25 Aug, 2010 04:21:09 Top