Using Apply-PnPProvisioningTemplate to create a library with a different name than the template

Copper Contributor

I've been trying allsorts but unsuccssessful so far. Can i use Apply-PnPProvisioningTemplate to create a new list/library with a new and different name from the one in the template? I dont want to edit the template file.

 

This is how i get the template: 

Get-PnPProvisioningTemplate -out $templatePath -Handlers Lists -ListsToExtract "IMS Documents"

 

This is how i try to make the new one:

Apply-PnPProvisioningTemplate -Path $templatePath -Parameters @{"ListInstance Title"="EMS"}

 

1 Reply

@FrodeH Open the XML file (use notepad ++) or the like & modify the url & title values in the <pnp:ListInstance> xml attribute its like the 3rd line, can't miss it.