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

query different views in a list

May 5, 2015 at 7:23 PM
I have a list with different views in it, I want to show these different views on my page, is there a way to query a list and define what view you want to query? The way it appears, it queries the default view by default, I'd like to select what view I want to query from
May 6, 2015 at 11:00 PM
Check the docs for GetListItems. You can specify the view with ViewName. I recommend this, though, as it's easy to change the view and break your code.

May 8, 2015 at 2:49 PM
Thanks, I'll take a look, I use the list GUID's instead of the name just for that reason, is using the view GUID possible as well?