Script: manage duplicate custom actions
Summary
The scripts that allow to deploy and install the extension on site collection and apps catalog of the site collection does not manage duplicate custom actions.
Prerequisites
- I checked the documentation and found no answer
- I checked to make sure that this issue has not already been filed
Your environment
Tenant Release |
|
Extension version | 1.0.0 |
Deployment |
|
Browser | |
Browser Version | |
Operating System | Windows 10, Mac |
Current behavior
- Connect to the SharePoint site via Bash or PnP PowerShell
- Enable site collection apps catalog
- Launch the setup script
- Get the custom action with scope site and web
- More than one custom actions existing
Expected behavior
- Connect to the SharePoint site via Bash or PnP PowerShell
- Enable site collection apps catalog
- Launch the setup script
- The script check the existing custom actions
- If already exist, remove existing from scope site AND web
- Create new custom action