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 have my own folder content type inherited from base Folder content type. I am trying to create folders based on my own content type programmatically without success. I change newFolder.Item["ContentTypeId"] to my content type id but nothing seems to be changed.

Am I doing something wrong?

share|improve this question

That should work. You may be missing the .Update() call after setting your content type id ( Whenever something like this isn't working for me, it's usually because I forgot that.

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.