SP.List.getView(viewGuid) Method

SharePoint 2010

Last modified: February 09, 2010

Applies to: SharePoint Foundation 2010

In this article
Return Value
Applies To

Returns the list view with the specified view identifier.

var value = SP.List.getView(viewGuid);


Specifies the view identifier.

Type: SP.Guid


List view does not exist. Error code: -2147024809.


The current user has insufficient permissions. Error code: -2147024891.

If an empty GUID is specified it must return the default view of the list.