Created
September 11, 2017 16:32
-
-
Save ypcode/3b21f716f82e6b9c279cc1cc158832fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################ | |
# 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