views:

142

answers:

2

What is the best way to handle all the newly added documents and items to the SharePoint lists and Document Libraries on Share Point Web Application Level.

My case is that I want to do some insertions to database when any new document or item added.

note:

1- The Site Collections , Web or Sub Sites and Lists are not predefined.

2- I need to apply the handlers on both existing and new Document Libraries and lists.

my current options are:

1- Analyze Share Point Log.

2- Add Event Recievers to all SPLists.

Any Advices?

+5  A: 

We use event receivers extensively on our Sharepoint system. They are very reliable and easy to write. You can register an event receiver using a feature scoped at the site level, so it will fire for all SPListItem events (adding, updating, deleting, etc) that occur within that site collection for the list type you specify.

Rex M
How can I register event handlers to the existing lists , is there an easy way rather than looping on the whole site lists?
Khaled Musaied
A: 

What are you trying to do ?!?! Event receivers seems the correct choice....

salgo60
Event Receivers are a good choice for new lists but I have to loop on all existing lists to register the events which is a bad an risky action. Is there an easy way to register the events to existing lists?
Khaled Musaied