I am new to the PnP PowerShell. I want to provision list using list template for Document Library. I can get it using below command:
Export-PnPListToProvisioningTemplate -Out C:\DocumentLibraryTemplate.xml -List "Documents"
But Is there any way I can get Content of that library as well in xml. So that I can provision the same on another site ? Thank you in advance.
Maybe you can use the commands below:
Reference: https://techcommunity.microsoft.com/t5/microsoft-365-pnp-blog/copy-a-list-with-list-items-to-another-site/ba-p/2248892