簡體   English   中英

PnP PowerShell - 我們可以在列表模板 xml 中獲取列表內容嗎?

[英]PnP PowerShell - Can we get List content in List template xml?

我是 PnP PowerShell 的新手。 我想使用文檔庫的列表模板提供列表。 我可以使用以下命令獲取它:

Export-PnPListToProvisioningTemplate -Out C:\DocumentLibraryTemplate.xml -List "Documents"

但是有什么方法可以在 xml.xml 中獲取該庫的內容。 這樣我就可以在另一個站點上提供相同的服務? 先感謝您。

Add-PnPDataRowsToSiteTemplate -Path Lists.xml -List "Middle Earth Locales" Add-PnPDataRowsToSiteTemplate -Path Lists.xml -List "Fellowship Members" 也許你可以使用上面參考的命令: https ://techcommunity.microsoft.com/t5/ microsoft-365-pnp-blog/copy-a-list-with-list-items-to-another-site/ba-p/2248892

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM