ADD columns to Document Library

ADD columns to Document Library 

Import-Module PnP.PowerShell

$siteUrl="<<Site Url>>"

$listNameExternalCollaobrationRequest="<<List Name>>";

$fieldNameSiteUrl='SiteUrl';

Connect-PnPOnline $siteUrl -Interactive

$externalCollaborationList=Get-PnPList| where {$_.Title -eq $listNameExternalCollaobrationRequest}

Add-PnPField -List $listNameExternalCollaobrationRequest -DisplayName $fieldNameSiteUrl -InternalName $fieldNameSiteUrl -Type Text

Comments

Popular posts from this blog

Add Everyoneone to SharePoint site