D
David Webb
In Outlook 2003, if you open a message and hover over the name in the From
field, a menu appears with "Look up Outlook Contact" as one of the menu items
which will either open up a Contact or display a message stating that no
matching contact was found.
I would like to be able to use code in my VSTO 2005 Add-In to open a message
and check to see if there is a matching Contact. If so, I want to set some of
the UserProperties of the Contact Item.
Currently, I am searching for a string in the Subject of the Inbox items and
when one is found, I then loop through all of the Contacts to find a matching
email address. This seems to me to be the slow way of doing it although it
does work.
It would probably be much faster to be able to open up a Contact item using
code the same way that a user can open up a Contact item by using the "Look
up Outlook Contact" function.
Is this possible or is looping through the Contacts collection and comparing
email addresses the only way?
field, a menu appears with "Look up Outlook Contact" as one of the menu items
which will either open up a Contact or display a message stating that no
matching contact was found.
I would like to be able to use code in my VSTO 2005 Add-In to open a message
and check to see if there is a matching Contact. If so, I want to set some of
the UserProperties of the Contact Item.
Currently, I am searching for a string in the Subject of the Inbox items and
when one is found, I then loop through all of the Contacts to find a matching
email address. This seems to me to be the slow way of doing it although it
does work.
It would probably be much faster to be able to open up a Contact item using
code the same way that a user can open up a Contact item by using the "Look
up Outlook Contact" function.
Is this possible or is looping through the Contacts collection and comparing
email addresses the only way?