Table of Contents

๐Ÿงฉ Squirrel Archive and Restore Buttons for SharePoint

๐Ÿ” Overview

The Squirrel Archive and Restore buttons integrate seamlessly with SharePoint, giving users a simple and secure way to archive or restore files with a single click โ€” directly within the SharePoint interface.

This feature is powered by a lightweight SPFx package and a custom Restore column, which you can deploy to one or all SharePoint sites using provided PowerShell scripts.

Key Features:

- โœ… One-Click Archive & Restore directly from SharePoint - ๐Ÿ” Secure authentication using the logged-in userโ€™s Entra ID (formerly Azure AD) - ๐Ÿ” Easy deployment via SPFx package and PowerShell automation - โš™๏ธ Works across all sites or can be targeted to individual SharePoint sites


๐Ÿงฑ Step 1: Upload the SPFx Package

๐Ÿ“ฆ Obtain the SPFx package from SmiKar Software.
๐Ÿ”ง Go to your SharePoint Admin Center (`https://TENANTNAME-admin.sharepoint.com`).
๐Ÿงญ Navigate to More Features > Apps > Open.
โฌ†๏ธ Click Upload and select the SPFx package.
๐Ÿ—‚๏ธ Choose to deploy to all sites or a specific collection.
โœ… The app will now be enabled.
๐Ÿ” Confirm the app shows as โ€œEnabledโ€ and โ€œAvailable to all sitesโ€.

๐Ÿ“Œ Step 2: Deploy the Restore Column to All SharePoint Sites

SmiKar provides three PowerShell scripts:

- `Create and associate restore button.ps1` โ€“ Adds the Restore column to all sites - `Add Button to Individual Site.ps1` โ€“ Adds the Restore column to a single site - `Delete and Unassociate Restore Buttons.ps1` โ€“ Removes the Restore column from all sites

๐Ÿ›ก๏ธ Note: You must be a Global Administrator to run these scripts successfully.

Deploying to All Sites:

๐Ÿ› ๏ธ Open `Create and associate restore button.ps1` in Visual Studio Code.
โœ๏ธ Update the tenant name on line 2. Replace `โ€œTENANTNAMEโ€` with your actual tenant name.
โ–ถ๏ธ Press F5 to run the script. It will loop through your SharePoint sites and add the Restore column.
โœ… Once completed, you will see: โ€œ๐ŸŽ‰ โœ… SPFx Field Customizer installed and associated on all sites!โ€
๐Ÿ” Confirm the Restore column appears in any document library where a file has been archived.

๐Ÿ”„ Step 3: Deploy to an Individual SharePoint Site

When a new SharePoint site is created, run this script to enable the Restore button for that site.

๐Ÿ› ๏ธ Open `Add Button to Individual Site.ps1` in Visual Studio Code.
โœ๏ธ On line 2, update `โ€œTENANTNAMEโ€` and `โ€œSITENAMEโ€` or directly replace with your siteโ€™s URL.
โ–ถ๏ธ Press F5 to run the script.
โœ… Success message: โ€œ๐ŸŽ‰ โœ… Restore button added successfully to Your New Site URLโ€
๐Ÿ” Verify the column is present in the document library of the new site.

๐Ÿงน Step 4: Delete the Restore Column from All Sites

Use this when you need to fully remove the Squirrel Restore Column from all document libraries.

๐Ÿ—‘๏ธ Open `Delete and Unassociate Restore Buttons.ps1` in Visual Studio Code.
โœ๏ธ Update the tenant name on line 2 with your tenantโ€™s actual name.
โ–ถ๏ธ Press F5 to run the script.
โœ… Confirmation: โ€œ๐ŸŽ‰ โœ… All Restore columns have been fully deleted from all sites!โ€
๐Ÿ” Visit a few SharePoint document libraries to confirm the column is no longer visible. Refresh the page if needed.

Need assistance with deployment or scripts? Contact [support@smikar.com](mailto:support@smikar.com) or your SmiKar representative for help.