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 am trying to get the ContentTypeOrder of a specific folder using SharePoint web services and caml queries. I am using the GetListItems() method of the Lists.asmx web service. The resulting xml contains the contentTypeId of the folder and doesn't say anything about the supported content types.

Is it possible to do it without the use of the SharePoint API and the SharePoint Client Object Model?

Do I need to add options to the caml query? Or use another web service?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

After all it can't be done. The only solution is to create my own web service if I don't want to use the SharePoint API and the SharePoint client object model.

share|improve this answer
add comment

If you're using the Lists web service, you could use the GetListContentTypes method of that service. It probably does mean a second web service call.

Ignore the ContentTypeId parameter - it doesn't seem to do anything.

I'm pretty sure that the content types are returned in content type order. What I'm not sure you can do is query a specific folder.

share|improve this answer
    
I can use the GetListContentTypes method but it returns the content types and the content type order on the root folder of a specified list. But i don't know to get the same information for other folders. –  user3470 Jan 10 '12 at 20:18
    
Hmm. Yes, that is tricky. I don't see a way of doing that via the web services. Perhaps add your own web service to SharePoint? –  Andy Burns Jan 11 '12 at 12:45
    
I was reading your blog novolocus.com/2007/12/08/… where you said that there is no easy way to identify non visible content types on a SharePoint list. Is there a way even if it is not easy? Can you look at another question similar to this? sharepoint.stackexchange.com/questions/26222/… –  user3470 May 7 '12 at 8:54
    
Hmm. Well, you could create your own web service to return that kind of information - that's what I mean by not easy. –  Andy Burns May 8 '12 at 12:51
add comment

Your Answer

 
discard

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