View Single Post
  #4  
Old March 2nd 06, 08:56 PM posted to microsoft.public.outlook.contacts
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default automatically launching a script when contacts changed

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/d...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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Kalirion" wrote in message oups.com...
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

Ads