I am developing Outlook VSTO add-in where we assign custom user properties call "Ownership" to all new emails. The code I use is below.
string UserName = (string)application.ActiveExplorer().Session.CurrentUser.Name;
MailUserProperties = SelectedMail.UserProperties;
MailUserProperty = MailUserProperties.Add("Ownership", Outlook.OlUserPropertyType.olText, true, 1);
MailUserProperty.Value = UserName;
SelectedMail.Save();
Is it possible that when someone replies to us, Outlook would automatically pick up "Ownership" properties value from original email and assign to all incoming replies?
Thank you in advance.