SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to use the Lists.asmx service to gain access to surveys on a Sharepoint server.

I would like to be able to list all of the surveys without showing all the other kinds of lists there.

The idea is to select a survey by name (not GUID) and to then evaluate the responses. I am hoping that the web service will provide information about the questions too - multi-choice, rating range, data type etc.

Can anyone help here?


share|improve this question
up vote 3 down vote accepted

You can use the SiteData.asmx service's function GetListCollection to give you all the lists in the site. From there you can filter by BaseType == "Survey" to get all the surveys.

For the next part you will need to use Lists.asmx service's function GetList to give you an XML representation of the list. It returns the schema.xml of the list (CAML), so you'll need to parse that. This should be enough to get you started.

share|improve this answer

Your Answer


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.