Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Contacts / March 2006

Tip: Looking for answers? Try searching our database.

automatically launching a script when contacts changed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kalirion@yahoo.com - 02 Mar 2006 17:33 GMT
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
Sue Mosher [MVP-Outlook] - 02 Mar 2006 18:02 GMT
A contact in a public folder? A contact in your own Contacts folder? In what version of Outlook?

Signature

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

> 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
[quoted text clipped - 3 lines]
> Thank you,
> Kalirion
Kalirion - 02 Mar 2006 18:48 GMT
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
Sue Mosher [MVP-Outlook] - 02 Mar 2006 19:56 GMT
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/details.aspx?FamilyID=fa36018a-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.

Signature

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

> Thank you for the reply, Sue!
>
[quoted text clipped - 11 lines]
> Thank you,
> Kalirion
Kalirion - 02 Mar 2006 20:32 GMT
Great, thank you, Sue!

Kalirion
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.