Articles about European Sharepoint Hosting Service
SharePoint 2013 Hosting – HostForLIFE.eu :: Add And Remove Custom Action Using PnP PowerShell
In this blog article, I am going to add and remove custom action using PnP PowerShell.
Adding a custom action to the SharePoint site
The Add-PnPCustomAction command is used to add a user custom action to a web or site collection.
Example
This example adds a new custom action to the Site Settings and sets the Title, Name and other fields with the specified values.
Output
Getting the custom action information
The Get-PnPCustomAction command is used to return user custom action(s) of the web or current site collection.
Example 1
This example returns all custom actions of the current site.

Output
Example 2
This example returns the custom action with the id “47eaee71-7aa2-458a-8ca8-cbd48f5e68c3”.
Removing a custom action from the SharePoint site
The Remove-PnPCustomAction command is used to remove user custom action(s) from the current web or site collection.
Example
This example removes the custom action with the id “47eaee71-7aa2-458a-8ca8-cbd48f5e68c3”.

Print article | This entry was posted by Peter on July 18, 2019 at 5:51 am, and is filed under Other Related Post. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |