Skip to content

Instantly share code, notes, and snippets.

@AsishP
Created September 16, 2018 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AsishP/6abdd61c07e07cc380a8364030b7ce1d to your computer and use it in GitHub Desktop.
Save AsishP/6abdd61c07e07cc380a8364030b7ce1d to your computer and use it in GitHub Desktop.
$credentials = Get-Credential
Connect-PnPOnline "https://<your-tenant>.sharepoint.com/sites/<target-site>" -Credentials $credentials
## You can use the following PnP cmdlet
## ClientSideComponentId from Manifest.Json of the extension
Add-PnPCustomAction -Name "<CommandSetName>" -Title "<CommandSetTitle>" -Description "<Text>" -RegistrationId "101" -RegistrationType List -ClientSideComponentId "<Id from Manifest.json>" -Location "ClientSideExtension.ListViewCommandSet"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment