User Property Is not available at receiver end.

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

User Property Is not available at receiver end.
Mail item recived id not having the User property 
Sanat Ojha




Posts: 6
Joined: 2009-11-04
Hi,

Here i am adding Userproperty on mailsend event but while it reaches to receiver end , userproperty becoms NULL.

the code is:
Outlook.Inspector insp = OutlookApp.ActiveInspector();
Outlook.MailItem mail = insp.CurrentItem as Outlook.MailItem;
Outlook.UserProperties props = mail.UserProperties;
Outlook.UserProperty prop = null;
if(props != null)
{
//objMailitem.DeleteAfterSubmit = true;
prop = props.Add("ME", Outlook.OlUserPropertyType.olText, true, 1);
prop.Value = "Private";
}
mail.Save();

Please let me know where i am going wrong in code.

Thank You!
Best Regards,
Sanat
Posted 06 Nov, 2009 08:10:37 Top
Eugene Astafiev


Add-in Express team


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

It looks like user properties are not transmittable.
.NET, Extended MAPI, Windows Phone & RT
Posted 06 Nov, 2009 08:24:11 Top