Mark Wijnbergen
Posts: 27
Joined: 2019-03-18
|
Hi,
Our addin uses userproperties to determine whether certain actions on the email have been performed.
An userproperty is being added to the email via:
var userProps = Releaser.Add(mail.UserProperties);
var prop = Releaser.Add(userProps.Add(propertyName, Outlook.OlUserPropertyType.olText, true));
prop.Value = value;
mail.Save();
An userproperty is being read from the email via:
if (mail != null)
{
Outlook.UserProperty propPreferences = Releaser.Add(Releaser.Add(mail.UserProperties).Find(propertyName, true));
if (propPreferences != null)
{
return propPreferences.Value;
}
}
This works fine for users using Outlook Exchange in cached mode, but not for users in online mode. I was wondering, is this because userproperties are only stored in Outlook and not on the server? If this is the case, is there another solution to store the userproperties (or something similar) not only in outlook, but also on the server? If this is not the case, do you know why our solution is not working for online mode?
Thanks |
|
Andrei Smolin
Add-in Express team
Posts: 18825
Joined: 2006-05-11
|
Hello Mark,
I suppose this relates to unreleased COM objects: when the Releaser releases the COM objects? Also, check if the issue is caused by this code fragments, not by other parts of your add-in or by other add-ins.
Andrei Smolin
Add-in Express Team Leader |
|