New answers tagged

1

Modify your PnP PowerShell as below. $URL='https://tenant.sharepoint.com/sites/test' Connect-PnPOnline –Url $URL –Credentials (Get-Credential) $listTitle = "Test" $listUrl = "Test" Remove-PnPList -Identity $listTitle Write-Host -ForegroundColor Magenta "Creating list: " $listURL New-PnPList -Title $listTitle -Url $listUrl -Template GenericList $FieldXML= "&...


1

Solution 1: Try adding Viewable = "TRUE" in Field XML. Example: $xml = '<Field Type="Text" Name="PSCmdletTest" DisplayName="PSCmdletTest" ID="{27d81055-f208-41c9-a976-61c5473eed4a}" Group="Test" Required="FALSE" StaticName="PSCmdletTest" Viewable="TRUE" />' Add-...


0

You can get the URL of Site page using [$FileRef]. This will be relative URL of page like: sites/SiteName/SitePages/PageName.aspx I was not able to find how to get the Published date field. But you can get the Created and Modified date using [$Created] and [$Modified] respectively. You can use below JSON code on any field. It will show the current column ...


0

that is only doable in sharepoint on premises, here is an explanation for programmatically setting up the document set default view on a list => If you want a workaround for sharepoint online, please use this powershell docset welcomepage view setter and follow this example


Top 50 recent answers are included