powershell icon indicating copy to clipboard operation
powershell copied to clipboard

SetList: add "-Path" parameter for updating list URLs

Open fowl2 opened this issue 2 years ago • 0 comments

Add -Path parameter for updating list URLs.

Considered calling it -Url but that would seem more appropriate if full URLs were expected to be the common form.

Looked into Folder.MoveToPath, but I think the built-in URL encoding/decoding guessing makes more sense here. "Shared Documents" and "Shared%20Documents" should both be "Shared%20Documents" rather than the later becoming "Shared%2520Documents".

Set-PnPList -Identity "Demo List" -Path "Lists/DemoList"
Set-PnPList -Identity "Shared Documents" -Path "Documents"

Type

  • [ ] Bug Fix
  • [x] New Feature
  • [ ] Sample

fowl2 avatar Sep 26 '22 08:09 fowl2