Custom actions (quick guide) has a fantastic write up with respect to deploying Custom Actions from an Add-In.  If you are in a pinch and want to deploy or remove custom actions take a look at a Powershell CmdLet.   This sample will add a variety of custom actions based on a JSON definition.


Lets get to the code:  will read in a JSON file containing definitions for Site, Web, or List custom actions.  The CmdLet will deserialize the JSON file and process the various Custom Actions.   If the custom action is found; it will update the details.  If not found; it will add the action.   The following script presents the requisite pattern to connect to a site, update the custom actions, and disconnect the context.


Custom Action [Site | Web | List] samples:

Command UI [List] samples


Skip to main content