Add-PnPCustomAction gives error when used for SPFx extensions #1048
Comments
Hi Chris, we are looking to get this fixed with September release - coming out this weekend / Monday. |
Fixed with September 2017 release, so closing this. |
@chrisobriensp have you been able to successfully use the Add-PnPCustomAction cmdlet for a spfx extension following @VesaJuvonen's update? I'm seeing what is likely user error – "Add-PnPCustomAction : Parameter set cannot be resolved using the specified named parameters." Here's my PS command (leveraging your sample): Here are my values for each of the variables:
See anything I could be missing here? |
It looks like I'm missing a required property : ClientSideComponentProperties. Surprised to see this as required – I'm not making use of any client-side component properties with my extension. @VesaJuvonen could you point me to some additional information on this? |
Works if you don't use -Group and -Description, however can't set -Scope Site. Is this a bug? How do I deploy my extension on site collection level ? |
I'm still having issues with this 'SharePointPnPPowerShellOnline' on version '2.22.1801.0' I have tried with different group properties values and none work. I'm also getting an error 'Parameter set cannot be resolved using the specified named parameters.' when the -ClientSideComponentId -ClientSideComponentProperties are set |
@raymondlittle100 as SickB0t mentioned you will need to leave off -Description and -Group but you must have -ClientSideComponentId to do so. As an example:
@VesaJuvonen should the documentation be updated to reflect this? Currently -Group and -Description are marked as required when in the case of Application Customizers you must explicitly not provide them. |
Has anyone tried using the "Sequence" option when adding a custom action relating to application customizers. It seems to throw an error. I've logged the bug below but nothing back yet |
Reporting an Issue or missing feature
Issue
Expected behavior
When using Add-PnPCustomAction and specifying a ClientSideComponentId (e.g. when working with SPFx extensions), I expect to be able to successfully register the new Custom Action.
Actual behavior
I seem to see this behaviour, which doesn't seem right:
Steps to reproduce behavior
Add-PnPCustomAction -Name $spfxExtName -Group $spfxExtGroup -Title $spfxExtTitle -Description $spfxExtDescription -Location $spfxExtLocation -ClientSideComponentId $spfxExtension_GlobalHeaderID
(where $spfxExtGroup is either "" or "MyGroup")
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
2.17.1708.1
How did you install the PnP-PowerShell Cmdlets?
Thanks for any help! :)
Cheers,
COB.
The text was updated successfully, but these errors were encountered: