pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
415 stars 642 forks source link

Feature request for Get-PnPProvisioningTemplate: Allow root folder name for -ListsToExtract parameter #2665

Open heinrich-ulbricht opened 4 years ago

heinrich-ulbricht commented 4 years ago

Category

Environment

Expected or Desired Behavior

I expect the -ListsToExtract parameter of Get-PnPProvisioningTemplate to also accept root folder names (the one you see in the URL).

Why do I need this? When managing template sites for multiple languages the title and ID will be different across the sites or tenants but the root folder name might be the same. Having -ListsToExtract accept this root folder name makes things easier.

(This would also make the parameter compatible with the Get-PnPList cmdlet which already supports root folder names.)

Observed Behavior

Currently only title and ID are supported for the -ListsToExtract parameter.

Steps to Reproduce

Call Get-PnPProvisioningTemplate -Out "template.xml" -Handlers Lists -ListsToExtract "User Photos" on a list with root folder User Photos and localized title Benutzerfotos. It will fail. Only -ListsToExtract "Benutzerfotos" works.

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.