SP.ListCollection.getByTitle Method (sp.js)

Returns the list with the specified title from the collection.

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

SP.ListCollection.getByTitle()

Parameters

  • strListName
    Type: String

    A string containing the list title.

    It must not be null. It must not be empty. Its length must be equal to or less than 255.

  • title

Return value

Type: SP.List

REST resource endpoint

See ListCollection resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists/getByTitle(title)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists/getByTitle(title)

Resource parameters

  • title