spo app add : it works)spo app deploy : it works)spo app install : it works)spo customaction add : it works)It works !!!
So what's wrong ??? Because I'm using spo app install my extension is enable a first time without property AND a second time from my custom action with the good parameters.
Globally it works, but my extension is active two times on my site collection and one of them is not set up correctly.
Other idea ?
spo app install is just calling the rest API for install. I am not sure what the API is doing under the hood. In my opinion it should not deploy a custom action unless this is declared in your elements.XML (features XML) in the solution package (your-foldr/SharePoint/siteassets).
Disabling the feature XML or custom action in it means that we have to open and modify the solution package. Not sure if this is the intention. Developer can just modify the XML and remove the custom action from the source code XML before packaging.
You might have loads of custom actions so should be a list of , but still we have to open the solution package and scan for custom actions and identifiers for them so we can query later and find their IDs.
Good point @VelinGeorgiev !
I didn't think about element.xml... I commented the <CustomAction> node.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!--<CustomAction
Title="MyCustomExtension"
Location="ClientSideExtension.ApplicationCustomizer"
ClientSideComponentId="ID"
ClientSideComponentProperties="{"message":"My Custom Message"}">
</CustomAction>-->
</Elements>
Thx
Most helpful comment
Good point @VelinGeorgiev !
I didn't think about
element.xml... I commented the<CustomAction>node.Thx