Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Import Macro Repair

...

After renaming a library in SharePoint Online it’s not possible to select find this library using in the edit mode of the SharePoint List macro in Confluence.

...

Note

Renaming the rootfolder will also result in a changed url to access this library! References containing the old rootfolder will not work anymore.

Steps to rename the rootfolder:

  1. Install the latest release of PnP Powershell on your client

  2. Open the PowerShell ISE

  3. Paste the following script into a new window:

    Code Block
    languagepowershell
    $siteUrl = "<PASTE THE URL TO YOUR SHAREPOINT SITE THAT CONTAINS THE LIST>"
    $oldListName = "<PASTE THE OLD NAME OF THE LIBRARY>"
    $newListName = "<PASTE THE NEW NAME OF THE LIBRARY>"
    
    Connect-PnPOnline $siteUrl
    Rename-PnPFolder -Folder $oldListName -TargetFolderName $newListName

  4. Replace the values for siteUrl, oldListName and newListName

  5. Run the script and if prompted enter the credentials of the account you want to use to perform the renaming (the account needs at least edit permissions on the list)

...