Hello Everybody,
I am doing a customization in Vault Professional 2013 where application revolved around triggers. My question is how to trigger a event when a file is added to vault.
This will not run inside Vault, but will run as windows service.
If some one helps me, will be helpfull.
rgds
Amit
hello Amit,
you could trigger a new AddFile event inside VaultClient, but because you want to run a windows service, you need eventHandlers.
I think an eventHandler is loaded from VaultClient and other vault applications too (JobProcessor, inventor with vault addin, acad with vault addin, ...).
But your Windows service should load the eventHandler too.
In the following blog post should give you more information about a simple eventHandler and the AddFile event:
http://blog.coolorange.com/2013/03/11/eventhandler-and-replication-best-practice/
Because you want that the eventHandler is loaded only in your windows service, you can give a look to this post too (section 1 )
http://blog.coolorange.com/2012/07/26/working-with-event-handlers/
In both posts you should find relevant code snippets too 🙂