SP.Web.availableFields property (sp.js)

Gets a value that specifies the collection of all fields available for the current scope, including those of the current site, as well as any parent sites.

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

var value = SP.Web.get_availableFields ()

Return value

Type: SP.FieldCollection

An SP.FieldCollection object that represents the fields.

Remarks

It must not be null.

REST resource endpoint

See Web resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/availableFields

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/availableFields

GET syntax

GET http://<sitecollection>/<site>/_api/web/availableFields