automatically launching a script when contacts changed

  • Thread starter Thread starter kalirion
  • Start date Start date
K

kalirion

Is it possible to configure Outlook 2003 to perform an action such as
launching a script or sending an email whenever a contact has been
added, changed, or deleted? The contact's information should be
provided to the script or sent in the email.

Thank you,
Kalirion
 
A contact in a public folder? A contact in your own Contacts folder? In what version of Outlook?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Thank you for the reply, Sue!

At the moment, the personal Contacts folder is enough, though later we
might want to do it for public folders as well. The version is MS
Outlook 2003 SP1.

The utlimate goal is to have a SOAP message with the Contact info sent
to a web service when a CardScan business card reader reads a card.
The reader can be configured to synchronize contacts with Outlook, so I
thought that maybe Outlook had some functionality to either send the
SOAP message directly or, more likely, communicate with a program that
could do it.

Thank you,
Kalirion
 
Any code that you write in Outlook VBA to do this won't be translatable to an Exchange event sink, which is how you'd want to handle a public folder.

But for the VBA solution, download the Office 2003 Web Services Toolkit from http://www.microsoft.com/downloads/...8a-e1cf-48a3-9b35-169d819ecf18&DisplayLang=en. This will give you the plumbing you need for the SOAP calls.

The other piece is to use the MAPIFolder.Items.ItemChange event to monitor a folder for changes. The Help topic on that event explains it well. YOu can also see an example of the similar ItemAdd event at http://www.outlookcode.com/d/code/zaphtml.htm

Note that OUtlook VBA code is not meant to be distributed to other people. If your goal is an enterprise-wide solution, you'll want to build an Outlook add-in. But the VBA environment is a good way to do some initial prototyping.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top