How do I sort contacts by recent activity

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to be able to sort my contacts by the most recent activity so I know
which ones I haven't contacted in a while. I am not using Business Contact
manager, I just want it to look at recent emails, journal entries, etc. and
deliver me a list of contacts sorted by the most recent activity entry.
 
Outlook provides no way to do that, because it stores no data in the
individual contact that could be used to get a last activity date. The
Activities list is built on the fly with a search.
 
Can that search be accessed by a C# .NET addin? I would just iterate through
each contact, performing the search and then picking the most recent activity
date . Then associate each contact with their respective dates. Certainly
this data has to be somewhere in the Outlook coding model.
 
The Activities pane search is not exposed programmatically. Instead, you
would need to perform your own deep traversal search of the entire store
using Application.AdvancedSearch. One DASL schema property to use would be
http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/853a101f
or
http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8586001f.
These properties will get at least the appointment, journal, and task items
that are explicitly linked. You would need to perform additional searches to
get mail messages to and from the contact and any meetings or task requests
for them.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top