2

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?

2 Answers 2

0

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.

4
  • 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
    Commented Jan 10, 2012 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
    Commented Jan 11, 2012 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
    Commented May 7, 2012 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
    Commented May 8, 2012 at 12:51
0

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.

Your Answer

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