After the creation of a Document Library I need to execute some things, like:

  • add a Content Type
  • add a Workflow to the library
  • may be other stuff

These things should be executed automatically.

I could write a Farm Solution to implement this requirement. But EventReceiver are only working on already existing lists. Is there another approach?

We are using SharePoint 2013 on premise.

Thanx a lot

1 Answer 1


You should look into SPListEventReceiver.ListAdding https://msdn.microsoft.com/EN-US/library/office/microsoft.sharepoint.splisteventreceiver.listadding.aspx for this. You have to register this event on every web, but than you can do what you're trying to do.

Maybe you have to use asynchronous event, I'm not sure about that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.