Link to home
Start Free TrialLog in
Avatar of Robberbaron (robr)
Robberbaron (robr)Flag for Australia

asked on

Agent Script or Event Sink ?

I have developed an Agent Script for Contacts folders within our public folder store. This script flags changes to contact details so that a SQL database can be updated to match the Contacts folder details. (Our users are familiar with updating outlook contacts so this removes an interface hurdle)

But before I apply this script to about 50 Contacts folders, i started to think about wether an Event Sink is more efficient.  Espec as this may expand to 100 contact folders.

By this i mean processing time and the ability to revise the script/sink for all the folders.

How do I go about converting my Agent VBS script into an Event Sink ?
I have VB6 pro so can create DLL's.

Should I actually create a DLL the is referenced within the Agent Script so that I can just update the DLL, rather than each event script?
SOLUTION
Avatar of kristinaw
kristinaw
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

I'd recommend to re-write your script as an Exchange store event sink. Exchange SDK includes the examples that you could use as a starting point.

Regards,
Victor Ivanidze
Avatar of Robberbaron (robr)

ASKER


Whats main reason for recommending Event Sink ?

If I write it as an event sink, can I attach sink to ALL public folder contact folders or do I attach to individual Folders ?

Attaching sink individually is fine so long as I can create a public folder Contacts type , attach event sink to that folder, and then copy that folder which also copies the event sink "attachment"

[ I have a Template folder with a standard set of sub folders. When a new project is created, I copy the Template folder (with subfolders) to a new name ie projectId.  I want to setup a syncronization of the Contacts subfolder with a SQL database. ]
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
been reading SDK. Certainly EventSink is future way to go but looks harder.

But just discovered that if a Folder with EventScript attached is copied, the EventScript is lost. And only way to apply event script is manually via Outlook.

Does anyone know if EventSinks copy with folders ?  It appears I could adapt the VBS Sink registration script into a VB6 application though.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial