SP.FieldCollection.getById Method (sp.js)
Gets the field with the specified ID.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.FieldCollection.getById()
Parameters
id
Type: SP.GuidThe ID of the field.
Return value
Type: SP.Field
The field with the specified ID.
REST resource endpoint
See FieldCollection resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/lists(listid)/fields/getById(id)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/lists(listid)/fields/getById(id)
Resource parameters
- id