Table of contents
TOC
Collapse the table of content
Expand the table of content

Get-PnPCustomAction

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Returns all or a specific custom action(s)

Syntax

Get-PnPCustomAction [-Identity <GuidPipeBind>]
                    [-Scope <CustomActionScope>]
                    [-Web <WebPipeBind>]
                    [-Includes <String[]>]

Returns

List

Parameters

ParameterTypeRequiredDescription
IdentityGuidPipeBindFalseIdentity of the CustomAction to return. Omit to return all CustomActions.
IncludesString[]FalseSpecify properties to include when retrieving objects from the server.
ScopeCustomActionScopeFalseScope of the CustomAction, either Web, Site or All to return both
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

PS:> Get-PnPCustomAction

Returns all custom actions of the current site.

Example 2

PS:> Get-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2

Returns the custom action with the id 'aa66f67e-46c0-4474-8a82-42bf467d07f2'.

Example 3

PS:> Get-PnPCustomAction -Scope web

Returns all custom actions for the current web object.

© 2017 Microsoft