SP.ListCollection.getById Method (sp.js)
Returns the list with the specified list identifier.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.ListCollection.getById()
Parameters
uniqueId
Type: SP.GuidSpecifies the list identifier.
id
Return value
Type: SP.List
REST resource endpoint
See ListCollection resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/lists/getById(id)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/lists/getById(id)
Resource parameters
- id