SP.List.getView Method (sp.js)
Returns the list view with the specified view identifier.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.List.getView()
Parameters
viewGuid
Type: SP.GuidSpecifies the view identifier.
Return value
Type: SP.View
Remarks
If an empty GUID is specified it must return the default view of the list.
REST resource endpoint
See List resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/lists(listid)/getView(viewGuid)
HTTP requests
This resource supports the following HTTP commands:
- POST
GET syntax
GET http://<sitecollection>/<site>/_api/web/lists(listid)/getView(viewGuid)
POST syntax
POST http://<sitecollection>/<site>/_api/web/lists(listid)/getView(viewGuid)
Resource parameters
- viewGuid