![](/img/trans.png)
[英]Get the URL behind link items in SharePoint document library via REST API
[英]How to add link(url) to SharePoint site's Document Library via REST API?
對於 SharePoint Online,我們可以使用 PnP powershell 輕松實現。
$siteurl="https://tenant.sharepoint.com/sites/lz"
$libraryTitle="DL"
Connect-PnPOnline -Url $siteurl
$linkText ="[InternetShortcut]URL=https://www.bing.com"
$memStream = New-Object System.IO.MemoryStream
$writeStream = New-Object System.IO.StreamWriter $memStream
$writeStream.WriteLine($linkText)
Add-PnPFile -FileName "Bing.url" -Folder $libraryTitle -Stream $memStream -Values @{_ShortcutUrl="https://www.bing.com"}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.