• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 399
  • Last Modified:

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?
0
Robberbaron (robr)
Asked:
Robberbaron (robr)
  • 3
  • 2
3 Solutions
 
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
 
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
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

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now