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



  • guidId
    Type: SP.Guid

    The 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 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