0

I have a list on my SharePoint site containing URLs to the contents of the site, namely URLs to files in a directory within Documents.

So something like

Documents
  |- subdirectory
    |- file_a.pdf
    |- file_b.pdf
    |- etc.

Now I changed the name of subdirectory into 1. subdirectory for the sake of archiving - and therefore, all the URLs pointing towards those pdf files became outdated in my list (since the URLs still point towards the initial directory name subdirectory instead of 1. subdirectory.

Is there a way to update all URLs at once in this list? Or do I have to adjust every item in the list one by one? I'm talking about hundreds of PDFs...

Best, Stefan

1
  • 1
    As per my understanding there is no direct way / OOTB way to do it. You can prepare some Power Shell script to update URL accordingly Nov 24, 2023 at 8:44

1 Answer 1

1

The best practice is to enable the Document ID Service which is a site collection feature. With this feature, a unique identifier will be assigned to a document with a permanent link. So, if you move or rename a parent folder, the link will stay the same and not be impacted.

Unfortunately, in your case, without this feature activated before the disaster, you have to change everything. Build a tool in PowerShell for example to automate the process.

Source: Enable and configure unique Document IDs

2
  • Thank you @jleture. However, I do not have any admin-rights to SharePoint and I just manage a dedicated site. Or could we enable unique Document IDs per site? Nov 28, 2023 at 10:38
  • Do you have access to site settings? Document ID is a site collection feature.
    – jleture
    Nov 28, 2023 at 12:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.