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

%3CLINGO-SUB%20id%3D%22lingo-sub-1107264%22%20slang%3D%22en-US%22%3EUsing%20Apply-PnPProvisioningTemplate%20to%20create%20a%20library%20with%20a%20different%20name%20than%20the%20template%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1107264%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI've%20been%20trying%20allsorts%20but%20unsuccssessful%20so%20far.%20Can%20i%20use%20Apply-PnPProvisioningTemplate%20to%20create%20a%20new%20list%2Flibrary%20with%20a%20new%20and%20different%20name%20from%20the%20one%20in%20the%20template%3F%20I%20dont%20want%20to%20edit%20the%20template%20file.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1107264%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1658656%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Apply-PnPProvisioningTemplate%20to%20create%20a%20library%20with%20a%20different%20name%20than%20the%20template%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1658656%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F279068%22%20target%3D%22_blank%22%3E%40FrodeH%3C%2FA%3E%26nbsp%3BOpen%20the%20XML%20file%20(use%20notepad%20%2B%2B)%20or%20the%20like%20%26amp%3B%20modify%20the%20url%20%26amp%3B%20title%20values%20in%20the%26nbsp%3B%3CLISTINSTANCE%3E%20xml%20attribute%20its%20like%20the%203rd%20line%2C%20can't%20miss%20it.%3C%2FLISTINSTANCE%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
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
Highlighted

@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.