Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.2 KB

GetPnPCustomAction.md

File metadata and controls

38 lines (32 loc) · 1.2 KB

#Get-PnPCustomAction Returns all or a specific custom action(s) ##Syntax

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

##Returns

System.Collections.Generic.List`1[Microsoft.SharePoint.Client.UserCustomAction]

##Parameters

Parameter Type Required Description
Identity GuidPipeBind False Identity of the CustomAction to return. Omit to return all CustomActions.
Scope CustomActionScope False Scope of the CustomAction, either Web, Site or All to return both
Web WebPipeBind False The 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.