SP.FieldCollection.getByInternalNameOrTitle Method (sp.js)
Returns the first Field object with the specified internal name or title from the collection.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.FieldCollection.getByInternalNameOrTitle()
Parameters
strName
Type: StringA string that specifies the internal name or title of the field.
Return value
Type: SP.Field
Remarks
The getByInternalNameOrTitle method searches first for an internal name, and then by title if an internal name is not found.
REST resource endpoint
See FieldCollection resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/lists(listid)/fields/getByInternalNameOrTitle(strName)
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/lists(listid)/fields/getByInternalNameOrTitle(strName)
Resource parameters
- strName