SP.Web.fields property (sp.js)

Gets the collection of field objects that represents all the fields in the Web site.

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

var value = SP.Web.get_fields ()

Return value

Type: SP.FieldCollection

An SP.FieldCollection object that represents the fields.


It must not be null.

REST resource endpoint

See Web resource for more information.

Endpoint URI structure


HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

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

GET syntax

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