Share via


SP.UserCustomActionCollection.item property (sp.js)

Gets the custom action at the specified index of the collection.

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

var value = SP.UserCustomActionCollection.get_item ()

Parameters

  • index

Return value

Type: SP.UserCustomAction

The custom action at the specified index of the collection.

REST resource endpoint

To get a user custom action, send a GET request to the UserCustomActions endpoint. See UserCustomActionCollection resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/UserCustomActions/item

HTTP requests

This resource supports the following HTTP commands:

  • GET

GET syntax

GET http://<sitecollection>/<site>/_api/web/UserCustomActions/item

Resource parameters

  • index