SP.ViewCollection.getByTitle Method (sp.js)

Gets the list view with the specified title.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

SP.ViewCollection.getByTitle()

Parameters

  • strTitle
    Type: String

    The title of the view to return.

Return value

Type: SP.View

The list view with the specified title.

REST resource endpoint

See ViewCollection resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/Views/getByTitle(strTitle)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/Views/getByTitle(strTitle)

Resource parameters

  • strTitle