Using AIX Store accessor, how do I set a user property on an aix item?

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

Using AIX Store accessor, how do I set a user property on an aix item?
 
mat3




Posts: 15
Joined: 2010-05-06
I can set the built in properties, but can't find a way to set a user property?
Thanks

Matt
Posted 09 May, 2010 00:03:48 Top
Eugene Astafiev


Guest


Hello Matt,

You can set or get Extended MAPI properties using their numeric IDs. For example:

mapiItem.SetProperty(0x340F0003, myLongValue); 


Also please have a look at our http://www.add-in-express.com/creating-addins-blog/2008/04/07/how-to-get-access-to-hidden-outlook-items-via-extended-mapi/.
Posted 10 May, 2010 03:08:59 Top
mat3




Posts: 15
Joined: 2010-05-06
Eugene,
Thanks for your reply. I read the blog post, but I'm still a little confused.

I have a user defined property called "Foo" that I have set on the folder (so that it can appear in a view) and now I'm trying to set it on a post item. With VSTO, my code looks like:

property = item.ItemProperties.Add("Foo", Outlook.OlUserPropertyType.olText, false); property.Value = "Bar";

how do I do the same using the aixStoreAccessor?
Thanks

Matt
Posted 10 May, 2010 13:59:50 Top
Eugene Astafiev


Guest


Hello Matt,

property = item.ItemProperties.Add("Foo", Outlook.OlUserPropertyType.olText, false); property.Value = "Bar";


Unfortunately the Mapi Store Accessor doesn't provide such a feature. You need to use the numeric ID of target property.
Posted 11 May, 2010 03:57:55 Top