When you mark a message for follow-up in Outlook it gets a red flag. When you mark it again the flag changes to a tick sign and the task completion time shows up. How to get/set this time from a C# application?
I’ve tried using the mailitem’s TaskCompletedDate but it returns only the date (not the time). I’ve also tried to find a task assigned to the marked message but didn’t manage either. What am I doing wrong? Where should I look for it?
I’m using Outlook 2007 and 2010.
Thanks in advance for the answers.
I found a workaround for this. I still don’t know where Outlook keeps the taksitem related to the given message but I’m using Outlook Tables to display the necessary data. A table can retrieve the desired data for me and then I retrieve it from the table’s cell.
The code that helped me get to this is here:
http://msdn.microsoft.com/en-us/library/ff184632.aspx
The column (cell) where the completion date is stored is called "Flag Completed Date". It displays the whole datetime value, not only the date.
The downside to this method is that you still don’t have direct access to that value and you cannot set it, only get it.