I have an add-in in Microsoft outlook. I tried to set Received value of outlook DocumentItem using below method.
public void SetDocumentItemReceivedDate(Outlook.DocumentItem objDocumentItem, DateTime dateTime)
{
objDocumentItem.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x0E060040", dateTime);
}
I have checked with Outlook 2013, 2016 and 365. It is working fine but in outlook 2010 I am not able to change the date. It will throw an exception Error: The operation failed.
Can anyone have idea how to solve this problem?
Thanks