Skip to content

Instantly share code, notes, and snippets.

@ypcode
Created September 11, 2017 16:32
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 ypcode/3b21f716f82e6b9c279cc1cc158832fc to your computer and use it in GitHub Desktop.
Save ypcode/3b21f716f82e6b9c279cc1cc158832fc to your computer and use it in GitHub Desktop.
############################################################
# Set here the URL of your site
$targetWebUrl = "https://yourtenant.sharepoint.com/sites/yoursite"
# Set the name of the custom action here (do not really matter in this case but allows to identify it)
$customAction = "ImportantMarker"
# Set here the Id of your extension. You can find it in the manifest in your SPFx solution
$componentId = [GUID]"42887c3b-0b7c-4fc4-8510-1107c73495c9"
# Set here the Id or name of the list
$listNameOrId = "MOTD"
# Set here the internal name of the field to bind the extension to
$fieldInternalName
############################################################
Connect-PnPOnline $targetWebUrl
$list = Get-PnPList $listNameOrId
Set-PnPField -List $list -Identity $fieldInternalName -Values @{ClientSideComponentId=$componentId}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment