Forum Discussion
Sharepoint-PNP - Is there a way to use PNP to update only one specific library?
With PnP Provisioning templates and PNP PowerShell you can update just a single library. If you have the template xml, you can just clean out other elements and leave only the list instance element for the list you want to be updated.
If you only want to export list instances, it is possible with -Handlers option like this:
Get-PnPProvisioningTemplate -Handlers Lists -Out <filename>
Matti Paukkonen that is excellent! Can i also somehow specify a specific list?
- Carlos_MarinsDec 20, 2019Iron Contributor
Hey FrodeH ,
You can totally target a specififc list to generate a template from, using the "ListsToExtract" parameter in the Get-PnPProvisioningTemplate command. You can checkout the https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/get-pnpprovisioningtemplate?view=sharepoint-ps#examples for more info, or let us know if you have any question.
Regards