Skip to content

Solution Automation RestorePHLItemAuto

Barbarur edited this page Mar 27, 2024 · 1 revision

Restore Files from Preservation

Solution Code: RestorePHLItemAuto

Description

Copy files from the Preservation Hold Library across the selected sites, to their original location. This solution only supports files and no items. Metadata from columns won't be copied a at this time. Only the file.

Requirements

Run the solution with and account with at least SharePoint Admin role.

Parameters

Actions
Parameter Type Description
Original location Required
Choice
Files will be restored on their original location. Folders will be created if needed.
Target location Required
Choice
If needed the restoration to take place on a specific folder instead of the original location.
Number of versions to keep Optional* Server relative path of the target location where files should be restored..

How this Solution works

  1. Collects the required Sites.
  2. Add account as Site Collection Admin.
  3. Collects the Preservation Hold Library.
  4. Collects the required Items in the PHL.
  5. Make a copy of the file from the PHL in the selected location.
  6. Records the information for each action in a CSV file.

Notes

If choosing to copy the files to a specific location, the solution should target a single site only.

Clone this wiki locally