SP.UserCustomActionCollection object

Represents a collection of SP.UserCustomAction objects.

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

var object = new SP.UserCustomActionCollection()

Members

The UserCustomActionCollection object has the following members.

Constructor

The UserCustomActionCollection object has the following constructor.

Constructor

Description

UserCustomActionCollection

Initializes a new instance of the SP.UserCustomActionCollection object.

Methods

The UserCustomActionCollection object has the following methods.

Method

Description

add

Adds a new SP.UserCustomAction object custom action to the collection.

clear

Deletes all custom actions in the collection.

getById

Returns the custom action with the specified identifier.

itemAt

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

Properties

The UserCustomActionCollection object has the following properties.

Property

Description

childItemType

item

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

REST resource endpoint

See UserCustomActionCollection resource for more information.

Endpoint URI structure

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

HTTP requests

This resource supports the following HTTP commands:

GET syntax

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

POST syntax

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