1
我試圖通過特定的視圖從SharePoint列表中導出項目。Powershell&Sharepoint通過視圖導出列表項到csv
我有項目成功返回,但現在我堅持試圖將它正確導出爲CSV文件
這裏是我迄今:
$web = Get-SPWeb $url
$splist = $web.Lists[$listname]
$view = $splist.Views["Current Month"]
$items = $splist.GetItems($view)
$items | Select-Object "Check Number", "Purchaser" | Export-Csv -Path f:\test.csv
$web.Dispose()
預先感謝您!