I am using the
GetListItems web service to query a list.
I am passing the
viewFields property to return certain fields:
var viewFields = XElement.Parse(@" <ViewFields> <FieldRef Name='Field1' /> <FieldRef Name='Field2' /> <FieldRef Name='Field3' /> </ViewFields> "); var result = client.GetListItems(listname, null, null, viewFields, null, null, null);
The problem is when these fields are empty or null, SharePoint does not return them, even though they are specified in ViewFields. Am I missing anything? Thank you so much.