SP.ViewCollection.getById Method (sp.js)
Gets the list view with the specified ID.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.ViewCollection.getById()
Parameters
guidId
Type: SP.GuidThe ID of the view to return.
Return value
Type: SP.View
The list view with the specified ID.
REST resource endpoint
See ViewCollection resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/lists(listid)/Views/getById(guidId)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/lists(listid)/Views/getById(guidId)
Resource parameters
- guidId