SP.ListItem.item property (sp.js)

Gets or sets the specified field value.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.ListItem.get_item ()
var value = SP.ListItem.set_item ()

Parameters

  • fieldName

Return value

Type: Object

The field value.

REST resource endpoint

To get a list item, send a GET request to the Items endpoint. See ListItemCollection resource for more information.