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

How would I fetch all Fields for specified View via web-service?

P.S. When I call GetView on Views.asmx, only visible Fields appear.


I fetch schema for my list (with Lists.asmx#GetList), which contains 55 Fields. I pick one of them and request list items with it (to add new column to listitem/row). The problem is not all fields are displayed, for example "Author" can be added to listitem/row as a column, but "_ModerationComments" or "_HasCopyDestinations" doesn't.
I'm trying to display all available columns for specified list and let user pick columns that he want's to be displayed in a grid of list items.

share|improve this question
I don't understand... if a field is not in the view, it will be invisible, but if a field is in the view, it will be visible. – Steve B Dec 14 '12 at 14:26
@SteveB I've edited the question. – surlac Dec 14 '12 at 15:22
In fact, you want to get the list schema instead of the view schema, don't you ? If yes, maybe you can use List web service's GetList method – Steve B Dec 14 '12 at 15:26
up vote 0 down vote accepted

To let user pick from all available fields, the GetList needs to be called on Lists.asmx (which returns all fields for specified list).
It looks like the same thing was done in the page of SP admin web-application, for editing the view, but all fields (55 for example) was filtered by hidden==false, so it's about 15 items remained.
Also, see ViewFields question for more details.

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.