This project has moved. For the latest updates, please go here.


CAMLViewName not working?



I am sucesssfully using the SPGetListItemsJson function, but it seems to ignore the CAMLViewName parameter. I'm taking that this parameter should limit the columns and the sorting to whatever is specified in the specified SharePoint list view.

For instance, I've created a list view named "Recent", where only the columns "Title" and "Created" are selected, and set the default sorting to "Created" in reverse order, but when setting the CAMLViewName parameter to either "Recent" or its GUID "{C1A43BDF-4F07-42ED-A101-CC28AECF65D0}", but the output does not change, it displays the items in the default order and with all the regular columns.
Closed Dec 16, 2014 at 5:34 PM by sympmarc
Fixed/deployed in 2014.02


sympmarc wrote Oct 24, 2014 at 3:21 AM

There were several places where I had used CAMLViewName instead of viewName, which was causing this issue (and perhaps others).

Fixed in 2014.02ALPHA6.

sympmarc wrote Oct 24, 2014 at 3:23 AM

BTW, note that it should be viewName and not CAMLViewName