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