Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 16th, 2018 85 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. $credentials = Get-Credential
  2. Connect-PnPOnline "https://<your-tenant>.sharepoint.com/sites/<your-site>" -Credentials $credentials
  3.  
  4. $context = Get-PnPContext
  5. $web = Get-PnPWeb
  6. $context.Load($web)
  7. Execute-PnPQuery
  8.  
  9. $ca = $web.UserCustomActions.Add()
  10.  
  11. $ca.ClientSideComponentId = "67fd1d01-84e8-4fbf-85bd-292820ddbf32" // replace it with your value
  12. $ca.ClientSideComponentProperties = ""
  13. $ca.RegistrationId="101"
  14. $ca.RegistrationType="DocumentLibrary"
  15. $ca.Location = "ClientSideExtension.ListViewCommandSet"
  16. $ca.Name = "SPFxListViewCommandSet"
  17. $ca.Title = "List View CommandSet"
  18. $ca.Description = "Custom action for SPFxListViewCommandSet"
  19. $ca.Update()
  20.  
  21. $context.Load($web.UserCustomActions)
  22. Execute-PnPQuery
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top