SP.Web.getAppInstancesByProductId Method (sp.js)

Retrieves all AppInstances installed on this site that are instances of the specified App.

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

SP.Web.getAppInstancesByProductId()

Parameters

  • productId
    The app product identifier of the specified application.

Return value

Undefined

REST resource endpoint

See Web resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/getAppInstancesByProductId(productId)

HTTP requests

This resource supports the following HTTP commands:

  • POST

GET syntax

GET http://<sitecollection>/<site>/_api/web/getAppInstancesByProductId(productId)

POST syntax

POST http://<sitecollection>/<site>/_api/web/getAppInstancesByProductId(productId)

Resource parameters

  • productId