SP.FeatureCollection.getById Method (sp.js)

Gets the feature with the specified feature ID.

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

SP.FeatureCollection.getById()

Parameters

  • featureId
    Type: SP.Guid

    The ID of the feature.

Return value

Type: SP.Feature

The feature with the specified ID.

Remarks

Returns null if no feature is available for the given feature identifier.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/features/getById(featureId)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/features/getById(featureId)

Resource parameters

  • featureId