views:

285

answers:

1

I can enable the management of content types in a document library's "advanced settings". Is there any web service method for this? I need to do this in an automated way, not manually.

It seems like neither Lists.AddList nor Lists.UpdateList can set the value of the "Flags" attribute that is needed for this. My web service client has alread created a new content type and has associated this content type with the list. But without enabling the management of content types, the new type won't appear in the "New" drop-down menu, for example.

Niklas

+1  A: 

The web services are limited compared to what is available using the object model. If you can't find it in the web services SDK (I can't) then unfortunately it doesn't exist.

If you can use the object model, see SPList.ContentTypesEnabled. Otherwise, you will need to create your own web service that flips the bit on this particular property.

Alex Angas