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?
LVL 33
Robberbaron (robr)Asked:
Who is Participating?
 
IvaSoftCommented:
Solution based on event sink is more scalable and stable then event script based one.
OnSyncSave type event sink can be set for whole PF store or on per-folder basis. OnSave event sink can be set only on per-folder basis. Read the details about the event sinks in the Exchange SDK documentation.

Regards,
Victor
0
 
kristinawCommented:
if anyone can help you, Glen Scales would be the guy:
http://gsexdev.blogspot.com/

Kris.
0
 
IvaSoftCommented:
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
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Robberbaron (robr)Author Commented:

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. ]
0
 
Robberbaron (robr)Author Commented:
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.
0
 
IvaSoftCommented:
An even sink registration item is a hidden item in the folder and it can't be copied.

Regards,
Victor
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.