This project has moved and is read-only. For the latest updates, please go here.

GetListItems not returning all columns specified in CAMLViewField

Feb 10, 2012 at 11:43 AM

I have the following SPServices call:

            operation: "GetListItems",
            async: true,
            webUrl: "http://"+document.location.hostname,
            listName: "How Do I",
            CAMLRowLimit: 0,
            CAMLQuery: "",
            CAMLViewFields: "<ViewFields><FieldRef Name=\"LinkTitle\"/><FieldRef Name=\"HowDoIDescription\"/><FieldRef Name=\"Parent\"/><FieldRef Name=\"HowDoILink\"/></ViewFields>",
            completefunc: GetDataComplete

And in the function that handles the return of the data "GetDataComplete", the call only returns the Title field, yet I need it to return all the fields specified in the CAMLViewFields option. 

How do I get all the columns I require back?

Feb 10, 2012 at 2:08 PM

Do the rows in the List have information populated in the "HowDoIDescription", "HowDoILink", and "Parent" columns?

SharePoint does not return the column in the response in the column is blank... there as a recent post here on this same problem.

If they do have data in them, insure that you are listing the "internal" name for the column and not the visible label.

Paul T