Skip to content

Solution Automation SetVersioningLimitAuto

Barbarur edited this page Dec 29, 2024 · 6 revisions

Set versioning limit

Solution Code: SetVersioningLimitAuto

Requirements

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

Parameters

Document Libraries
Parameter Type Description
Set versioning settings Optional Define if the solution should apply to Modern lists or not.
New Libraries Required choice Solution will apply as default setting for every future libraries of the target sites.
Existing Libraries Required choice Solution will apply to existing libraries of the target sites.
All Existing List Required choice Solution will apply to all Modern list of the target sites.
Single Library Required choice Solution apply to a single list with matching title for target sites.
Library title Required* Title of the single list to apply the changes.
Inherit from tenant Required choice Limits to target libraries will be set same as per tenant limits.
Customize limit Required choice Set custom limit for target libraries different from tenant.
Automatic Choice* SharePoint deletes (thins out) intermittent older versions that are least likely to be used, while preserving sufficient high-value versions. Learn more.
Applicable for custom limits.
Manual Choice* Set count limits on the number of major versions and optionally set expiration time.
Applicable for custom limits.
Disable Versions Choice* Target libraries won't keep any number of versions.
Applicable for custom limits.
Major version limit Required* Number of major versioning to keep.
Required if choosing Manual Limit.
Expiration time Optional Number of days to keep each version.
Minor version limit Optional Number of minor versioning to keep.
Modern Lists
Parameter Type Description
Set versioning settings Optional Define if the solution should apply to Modern lists or not.
All Existing List Required choice Solution will apply to all Modern list of the target sites.
Single List Required choice Solution apply to a single list with matching title for target sites.
List title Required* Title of the single list to apply the changes.
Manual Required choice Set count limits on the number of major versions.
Disable Versions Required choice List won't keep any number of versions.
Major version limit Required* Number of major versioning to keep.
Required if choosing Manual Limit.

How this Solution works

  1. Collects the required Sites.
  2. Add account as Site Collection Admin.
  3. Collects the required Lists/Libraries.
  4. Set the versioning limits for each library and list.
  5. Records the information for each action in a CSV file.
Clone this wiki locally