SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to know if it’s possible to write en Event Receiver in VB for automating the creation of a document set: the user only click “new document set” and then the code generates the document set with an automated name, without the windows where the user input the name and other properties for the doc set.

If it’s possible, what are the basic steps? (Which function to override, etc ) ?

By the way, is it possible in the same code to create inside this document set a new empty form based on form template ?


share|improve this question

I didn't work with document sets yet but I can suggest a solution. You can replace the related buttons in the ribbon with your own via declarative ribbon customization and redirect users to the custom aspx page with the code (and with no UI at all) to take all the required actions. Then you need to redirect user to the result page or back to the original list view.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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