1

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?

1 Answer 1

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.

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.