You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
58
58
- Added `-Identity` option to `Get-PnPPowerPlatformEnvironment` which allows retrieval of one specific environment by its displayname or id. [#2794](https://github.com/pnp/powershell/pull/2794)
59
59
- Added `Get-PnPPowerApp` which allows PowerApps to be retrieved [#2794](https://github.com/pnp/powershell/pull/2794)
60
60
- Added `-DisableCommenting` to `Set-PnPList` which allows enabling or disabling commenting on a list. [#2939](https://github.com/pnp/powershell/pull/2939)
61
+
- Added `-EnableAutoExpirationVersionTrim` and `-ExpireVersionsAfterDays` to `Set-PnPList` which allows enabling or disabling auto expiration of versions on a list or library based on the days passed. [#2869](https://github.com/pnp/powershell/pull/2869)
61
62
62
63
### Changed
63
64
@@ -108,6 +109,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
108
109
- Fixed `Add-PnPFieldFromXml` cmdlet. It will now return the correct typed field if the added field was of type `Taxonomy`. [#2926](https://github.com/pnp/powershell/pull/2926)
Enable or disable AutoExpiration version trim for the document library. Set to $true to enable, $false to disable.
523
+
524
+
Parameter ExpireVersionsAfterDays is required when EnableAutoExpirationVersionTrim is false. Set ExpireVersionsAfterDays to 0 for NoExpiration, set it to greater or equal 30 for ExpireAfter.
525
+
526
+
Parameter MajorVersions is required when EnableAutoExpirationVersionTrim is false.
527
+
Parameter MinorVersions is required when EnableAutoExpirationVersionTrim is false and minor version is enabled.
528
+
529
+
```yaml
530
+
Type: Boolean
531
+
Parameter Sets: (All)
532
+
533
+
Required: False
534
+
Position: Named
535
+
Default value: None
536
+
Accept pipeline input: False
537
+
Accept wildcard characters: False
538
+
```
539
+
540
+
### -ExpireVersionsAfterDays
541
+
Work with parameter EnableAutoExpirationVersionTrim. Please see description in EnableAutoExpirationVersionTrim.
542
+
543
+
```yaml
544
+
Type: UInt32
545
+
Parameter Sets: (All)
546
+
547
+
Required: False
548
+
Position: Named
549
+
Default value: None
550
+
Accept pipeline input: False
551
+
Accept wildcard characters: False
552
+
```
499
553
## RELATED LINKS
500
554
501
-
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
555
+
[Microsoft 365 Patterns and Practices](https://aka.ms/m365pnp)
thrownewPSArgumentException($"You must specify a value for {nameof(ExpireVersionsAfterDays)} and {nameof(MajorVersions)}",nameof(ExpireVersionsAfterDays));
thrownewPSArgumentException($"You must specify {nameof(ExpireVersionsAfterDays)} to be 0 for NoExpiration or greater equal 30 for ExpireAfter.",nameof(ExpireVersionsAfterDays));
0 commit comments