Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer 1

That should work. You may be missing the .Update() call after setting your content type id (http://asadewa.wordpress.com/2007/11/19/adding-a-custom-content-type-specific-item-on-a-sharepoint-list/). Whenever something like this isn't working for me, it's usually because I forgot that.

share|improve this answer
add comment

Your Answer

 
discard

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.