a guest Nov 16th, 2018 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- $credentials = Get-Credential
- Connect-PnPOnline "https://<your-tenant>.sharepoint.com/sites/<your-site>" -Credentials $credentials
- $context = Get-PnPContext
- $web = Get-PnPWeb
- $ca = $web.UserCustomActions.Add()
- $ca.ClientSideComponentId = "67fd1d01-84e8-4fbf-85bd-292820ddbf32" // replace it with your value
- $ca.ClientSideComponentProperties = ""
- $ca.Location = "ClientSideExtension.ListViewCommandSet"
- $ca.Name = "SPFxListViewCommandSet"
- $ca.Title = "List View CommandSet"
- $ca.Description = "Custom action for SPFxListViewCommandSet"
RAW Paste Data