You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the issue specs and the documentation, the default scope option value should be All, meaning that the command will look in all scopes (Site and Web) to find the customaction to delete. However, the default scope in the code is Site.
If you specify scope All manually, the command throws. This is because the code is just adding this to the customaction url, while deleting: /_api/All/UserCustomActions. However, this should not be possible, All is our convention, not a valid scope.
To solve these issues a few steps need to be taken:
Always find the customaction first, using the spo util functions, also when the --id property is used.
Use the scope value of the found customaction in the DELETE HTTP request.
The text was updated successfully, but these errors were encountered:
There are a number of issues with the command spo commandset remove
All
, meaning that the command will look in all scopes (Site
andWeb
) to find the customaction to delete. However, the default scope in the code isSite
.All
manually, the command throws. This is because the code is just adding this to the customaction url, while deleting:/_api/All/UserCustomActions
. However, this should not be possible, All is our convention, not a valid scope.To solve these issues a few steps need to be taken:
spo
util functions, also when the--id
property is used.scope
value of the found customaction in the DELETE HTTP request.The text was updated successfully, but these errors were encountered: