GetListItems not returning all columns specified in CAMLViewField

Feb 10, 2012 at 10:43 AM

I have the following SPServices call:

$().SPServices({
            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 1:08 PM
mrThirsty:

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