Forum Discussion
FrodeH
Dec 20, 2019Copper Contributor
Sharepoint-PNP - Is there a way to use PNP to update only one specific library?
I've managed to download a site template and make a new site based on this template, however the only thing i want updated is one specific document library. Is there a way to achieve this with PNP?
3 Replies
Sort By
- Matti PaukkonenIron Contributor
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>- FrodeHCopper Contributor
Matti Paukkonen that is excellent! Can i also somehow specify a specific list?
- Carlos_MarinsIron 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 documentation for more info, or let us know if you have any question.
Regards