SP.RelatedField.listId property (sp.js)
Gets a value that specifies a GUID that identifies the list containing the related lookup field.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.RelatedField.get_listId ()
Return value
Type: SP.Guid
REST resource endpoint
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/lists(listid)/GetRelatedFields()/GetByFieldId(fieldid)/listId
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/lists(listid)/GetRelatedFields()/GetByFieldId(fieldid)/listId
GET syntax
GET http://<sitecollection>/<site>/_api/web/lists(listid)/GetRelatedFields()/GetByFieldId(fieldid)/listId